Upon receipt of the list of companies for the user, he gives a 500 error code for a company that does not have a logo.
A request with the logo-url parameter:
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}
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}
Request without logo-url parameter:
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"}]}
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 resolve this?
I found this as a problem from Twitter. This happens if the requested company does not have a logo. I tried to add a new logo, and the API works with logo-url in the request.
logo-url
Source: https://habr.com/ru/post/1276261/More articles:Why is there "2 << -1" zero in javascript instead of one? - javascriptWhy is a function with an explicit “this parameter” assigned to a less specific signature? - typescriptStem replenishment in R replaces names, not data - rHow to use one loop for two different lists - pythonProblem in routing - Hash tag - Angular 2 - javascriptContainerization and orchestration, which instruments to use and why - dockerAbout limitations and concepts - c ++How to create a curve between two gradient divs in CSS? - htmlDoes jquery remove return after page refresh? - javascriptR tm stemCompletion generates a value of NA - rAll Articles