Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(400): Unknown field {first-name} in resource {Update} #241

Open
fschuindt opened this issue Sep 22, 2014 · 1 comment
Open

(400): Unknown field {first-name} in resource {Update} #241

fschuindt opened this issue Sep 22, 2014 · 1 comment
Labels

Comments

@fschuindt
Copy link

I have faced this problem when I call @client.network_updates:

LinkedIn::Errors::GeneralError in LinkedinsController#callback
(400): Unknown field {first-name} in resource {Update}

That's the code where I set @client:

def set_linkedin_client
  @client = LinkedIn::Client.new('xxx', 'xxx')
  LinkedIn.default_profile_fields = %w(first-name last-name date-of-birth location:(name) email-address skills certifications educations courses phone-numbers positions languages)
end

I don't know if it's real a issue, but I can't figure out what I am missing.

@hundredwatt
Copy link
Collaborator

@fschuindt looks like LinkedIn.default_profile_fields are being set as the :fields argument in the network_updates call, even though those fields don't apply to that call. The work around would be to not set .default_profile_fields OR specify the fields when you call #network_updates:

@client.network_updates(fields: [...])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants