Skip to main content

When I request the Calendly API, I encountered an unexpected error, and I'm not sure what caused it. Could you please explain it to me or make some improvements to your API? I believe I need more specific feedback regarding the error.

The API I requested is "Get Access Token."
https://developer.calendly.com/api-docs/be9b32ef4b44c-get-access-token

In the past, over a considerable period of time, I have received the following errors separately:

bad request: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: '<'
bad request: [json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid literal; last read: 'no'
bad request: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: 'u'
.... <title>auth.calendly.com | 520: Web server is returning an unknown error</title> ......


But according to your documentation, under the 400 status, it should explicitly return the following content:
{
  "error": "invalid_grant",
  "error_description": "The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."
}

But it seems that you are currently throwing unhandled exceptions instead...

Sometimes, these errors appear intermittently, disappearing after a while. However, in some cases, these errors persistently appear in my logging system.


All of the above is extremely distressing, and I would like to know if we have a solution to address these issues together.
 

I am facing the same issue. Did you get any solution for this issue? If yes, do let me know. 
Thanks !!


I am facing the same issue -  so what is happening actually:

I have created the application, got the client ID and client secret and got the authorization code thru 

https://auth.calendly.com/oauth/authorize?client_id=client_ID&response_type=code&redirect_uri=https://xyz.com/calendly/auth_callback

 

hitting through POSTMAN at https://auth.calendly.com/oauth/token?code=MYCODE&grant_type=authorization_code&redirect_uri=https://xyz.com/calendly/auth_callback&client_id=ABC&client_secret=XYZ gives the access token and refresh token which works for some hours and while exchaging the refresh token for next access token I am getting the error 

 

{"error"=>"invalid_grant", "error_description"=>"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}

 

 

and I have to start to flow from start to get the access token.


Hi. I am getting the exact same error bad request: json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: '<' when exchanging the refresh_token for an access_token. It used to work fine, but today this problem appeared.

This issue only occurs with one Calendly account, while everything works fine with other accounts using the same application and client_id.

Is there any way to understand what the problem is and how to fix it?


Reply