Invalid grant Error
I get the following error when using the Client Credentials Grant flow `{'error': 'invalid_grant', 'error_description': 'Grant credentials are invalid'}
#011Raw body: {"error":"invalid_grant","error_description":"Grant credentials are invalid"} CODE: 400`
MY CLIENT ID IS:
I have reconfirmed the application secrets that I am using for the request, and it is right, i have confirmed that the payload I am sending with the request is valid. I have been using the same credentials for 20 days and it has been working right. I have not made any changes to my app's settings since that date. Below is the full error message.
Underlying error: None
Message: 400 ; Request ID:
Request:
#011Method: POST
#011URL: https://api.box.com/oauth2/token
#011Query params:
{}
#011Headers:
{ 'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'box-python-generated-sdk-1.1.0',
'X-Box-UA': 'agent=box-python-generated-sdk/1.1.0; env=python/3.10.5'}
#011Body:
'grant_type=client_credentials&client_id=client_id&client_secret=client_secret&box_subject_
type=user&box_subject_id=subject_id'
Response:
#011Status code: 400
#011Headers:
{ 'Alt-Svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
'Cache-Control': 'no-store',
'Content-Type': 'application/json',
'Date': 'Thu, 11 Jul 2024 16:20:56 GMT',
'Set-Cookie': 'box_visitor_id=669006676c9e56.74715315; expires=Fri, '
'11-Jul-2025 16:20:56 GMT; Max-Age=31536000; path=/; '
'domain=.box.com; secure; SameSite=None, '
'bv=SHIELD-40136; expires=Thu, 18-Jul-2024 16:20:56 GMT; '
'Max-Age=604800; path=/; domain=.app.box.com; secure, '
'cn=80; expires=Fri, 11-Jul-2025 16:20:56 GMT; '
'Max-Age=31536000; path=/; domain=.app.box.com; secure, '
'site_preference=desktop; path=/; domain=.box.com; '
'secure',
'Strict-Transport-Security': 'max-age=31536000',
'Transfer-Encoding': 'chunked',
'Via': '1.1 google'}
#011Code: None
#011Context Info:
{}
#011Request Id: None
#011Help Url: None
#011Body:
{'error': 'invalid_grant', 'error_description': 'Grant credentials are invalid'}
#011Raw body: {"error":"invalid_grant","error_description":"Grant credentials are invalid"} CODE: 40
サインインしてコメントを残してください。
コメント
0件のコメント