-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Indexer should retrieve a new node token after the token is renewed #41
Comments
…s during the dataone api getsystemmetadata call. #41
Sounds like a good change. What would update the env variable so that it is available when it changes? Also, if the env variable is always correct, why not just read it from there from all operations, which would then prevent having to do the repeat operation? |
Once we have started using hashstore, this will no longer be necessary, since metadata can be retrieved without calling the dataone api on metacat |
Notes
|
Now we are using hashstore, this will no longer be necessary, since metadata can be retrieved without calling the dataone api on metacat |
Now the indexer only retrieves the node token during the service initialization. However, the token will be invalid every three months. This means we need to restart the service every three months in order to get the renewed token. This is not convenient.
The token is used to get the system metadata through DataONE api.
My proposed solution is: indexer will try to get the new token (read it from an env variable) again if the API getSystemMetadata call throws an unauthorized exception.
The text was updated successfully, but these errors were encountered: