question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InvalidClientIdError in fetch_token()

See original GitHub issue

Hello, I faced an error when go on fetch_token() with received url with code and state:

127.0.0.1 - - [15/Jan/2019 16:41:02] "GET /oauth2?code=SOME-CODE-DATA&state=SOME-STATE-DATA HTTP/1.1" 500 -
Traceback (most recent call last):
...
...
oauthlib.oauth2.rfc6749.errors.InvalidClientIdError: (invalid_request) The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed

Is this known issue? Seems something is being fixed in fetch_token in #331 . If this is not fixed, is there a workaround?

Thanks.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
holsaetercommented, Feb 6, 2019

@djKooks Try passing in include_client_id = True to your auth_session.fetch_token() call. I was having a similair issue arise after updating from 1.1.0 and 1.2.0 because this newly added parameter and passing that in fixed it (although mine was an InvalidClientError)

0reactions
jtroussardcommented, Jul 21, 2020

@singingwolfboy Sorry to be bringing this old stuff back to life. Found some free time and wanted to cherry pick a few of these issues to clean up. Seems to me that this issue is settled, however, ReadTheDocs is in fact behind. Pulled down the repo, ran make html in docs, thinking that would update the html files, then I noticed that these are ignored files? .gitignore line 9. Anyways I figured you might know how to refresh/rebuild the docs.

[EDIT]

Continued reading and found this issue addressing a similar out of sync docs issue: #392 Read the Docs is out of sync. and it looks like that the project needs push out a release to rebuild the documentation. Is there any desire to push a general release update just to get the project on level footing again? If anything get the documentation more current?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Got InvalidClientIdError (invalid_request) Mismatching redirect ...
I am trying to simulate token exchange between consumer and provider (server_to_server) using library requests_oauthlib. I getting error after I ...
Read more >
OAuth 2 Workflow — Requests-OAuthlib 1.3.1 documentation
Introduction¶. The following sections provide some example code that demonstrates some of the possible OAuth2 flows you can use with requests-oauthlib.
Read more >
Python debug Examples
Python debug - 28 examples found. These are the top rated real world Python examples of oauthlibcommonlog.debug extracted from open source projects.
Read more >
OAuthLib Documentation - Read the Docs
Client.query.filter_by(client_key=client_key).one() return True except NoResultFound: return False. The full API you will need to implement ...
Read more >
OAuth HTTP error response reference | Apigee Edge
Warning: In Edge Cloud Release 16.09.21, the error code " invalid_client " was changed to " InvalidClientIdentifier " for certain policy configurations.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found