You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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?
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: