We have a web application that has integration with Zenodo repository application. Zenodo users can login to our app and be able to interact with Zenodo using the Zenodo api. Recently we are seeing issues with fetching the token from Zenodo. When we are trying to retrieve the token, sometimes we get "invalid_grant" error with http code 401. We have created a ticket in our repo related to this issue. Here is a code snippet I was using to reproduce the issue:
The only thing that changes between multiple post requests (when trying to reproduce this error) to fetch the token is the AUTHORIZATION_CODE. This code we get using the endpoint https://zenodo.org/oauth/authorize Again, we get the invalid_grant error occasionally and it is easy to reproduce.
Any help in resolving this issue will be very much appreciated.
We have a web application that has integration with Zenodo repository application. Zenodo users can login to our app and be able to interact with Zenodo using the Zenodo api. Recently we are seeing issues with fetching the token from Zenodo. When we are trying to retrieve the token, sometimes we get "invalid_grant" error with http code 401. We have created a ticket in our repo related to this issue. Here is a code snippet I was using to reproduce the issue:
The only thing that changes between multiple post requests (when trying to reproduce this error) to fetch the token is the AUTHORIZATION_CODE. This code we get using the endpoint
https://zenodo.org/oauth/authorize
Again, we get the invalid_grant error occasionally and it is easy to reproduce.Any help in resolving this issue will be very much appreciated.