python3-linkedin
python3-linkedin copied to clipboard
linkedin.exceptions.LinkedInError: invalid_request: Unknown Error
Cloned git repository. Installed as per instructions. Edited /examples/http_api.py with client id, key etc. Edited app settings return url to match. Got authorisation code and list of routes.
Edited the examples/oauth2_code2accesstoken.py
Run it (with http_api.py running, so as to provide the return url should it be needed.
Get this ...
Traceback (most recent call last):
File "/home/charlie/.local/lib/python3.6/site-packages/linkedin/utils.py", line 49, in raise_for_error
response.raise_for_status()
File "/home/charlie/.local/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://www.linkedin.com/uas/oauth2/accessToken
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "oauth2_code2accesstoken.py", line 22, in <module>
result = authentication.get_access_token()
File "/home/charlie/.local/lib/python3.6/site-packages/linkedin/linkedin.py", line 136, in get_access_token
raise_for_error(response)
File "/home/charlie/.local/lib/python3.6/site-packages/linkedin/utils.py", line 62, in raise_for_error
raise ex(message)
linkedin.exceptions.LinkedInError: invalid_request: Unknown Error