linkedin companies api throws error code 500 for company without logo
Asked Answered
M

1

9

While getting list of companies for a user it throws 500 error code for the company which does not have a logo.

Query with logo-url param:

curl "https://api.linkedin.com/v1/companies:(id,name,universal-name,website-url,industries,status,blog-rss-url,logo-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers)?is-company-admin=true&format=json&count=1&start=2&oauth2_access_token=XXXX

{ "errorCode": 0, "message": "Internal API server error",
"requestId": "xyz", "status": 500, "timestamp": 1522908224279 }

Query without logo-url param:

curl "https://api.linkedin.com/v1/companies:(id,name,universal-name,website-url,industries,status,blog-rss-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers)?is-company-admin=true&format=json&count=1&start=2&oauth2_access_token=XXXX

{ "_count": 1, "_start": 2, "_total": 8, "values": [{ "id": 123456, "name": "Cross Talk", "numFollowers": 0, "universalName": "cross-talk" }] }

Can anyone help to resolve this?

Moonier answered 5/4, 2018 at 6:11 Comment(4)
I have the very same issue on the company_search API, I bet it has something to do with all the image url changes they've done the last few weeks.Salicylate
getting the same error, with logo_url and square-logo-urlIdes
we are seeing the same issue as well. LinkedIn team, are you listening? thanks!Faustena
This appears to be new behavior -- we only noticed it in the past week or two.Tail
H
0

I found this as an issue from LinkedIn. This happens if the requested company doesn't have a logo. I tried adding a new logo and the API works with logo-url in request.

Hanselka answered 6/4, 2018 at 7:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.