Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validate_token_parameters Error Check #448

Open
satiowadahc opened this issue Jul 1, 2021 · 2 comments
Open

validate_token_parameters Error Check #448

satiowadahc opened this issue Jul 1, 2021 · 2 comments

Comments

@satiowadahc
Copy link

satiowadahc commented Jul 1, 2021

From Autodesk API an example error is: {'developerMessage': 'The required parameter(s) client_id not present in the request', 'errorCode': 'AUTH-008', 'more info': 'https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/error_handling/'}

parameters.py :validate_token_parameters(params):
if 'error' in params:
raise_from_error(params.get('error'), params)

Never gets caught. This was a fair amount of debugging. May update if I find more information

@satiowadahc
Copy link
Author

body=body, refresh_token=refresh_token, scope=self.scope, **kwargs

Since scope is sent the API rejects it. I guess I gotta make a PR if I want this fixed...

@satiowadahc
Copy link
Author

I now realize that parameters.py isn't part of this repo, but the scope is. PR made #449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant