Closed Michelcyc closed 10 years ago
Hi,
Did you have any luck with this? I just ran the example at http://requests-oauthlib.readthedocs.org/en/latest/examples/linkedin.html and it worked nicely.
Did you register and submit the same redirect url? Make sure to check trailing /. Try catch the error and print err.json
fyi, 'DEBUG' is transitioning to the more explicit 'OAUTHLIB_INSECURE_TRANSPORT'.
@ib-lundgren i ran the example from the link and when redirected to linkedin I get:
"Error code: ERR_CONTENT_DECODING_FAILED"
Wow this is an unbelievably confusing error message to get for a wrongly copy pasted client_id. The example is working for me now.
@denibertovic indeed. Glad you found the error :)
@Michelcyc closing this issue as I am unable to reproduce. Feel free to reopen with reproduction steps!
I tried the example and I've got a InsecureTransportError when using the method "fetch_token". I corrected this error by:
Then, I've tried it again and I got a InvalidRequestError this time. My code is exactly like the example. My call is linkedin.fetch_token(token_url, client_secret=client_secret,authorization_response=redirect_response)
Stack errors:
InvalidRequestError Traceback (most recent call last)