Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more logging to userdetails responses #939

Open
adam-collins opened this issue Jan 20, 2025 · 0 comments
Open

add more logging to userdetails responses #939

adam-collins opened this issue Jan 20, 2025 · 0 comments

Comments

@adam-collins
Copy link
Contributor

/occurrences/offline/download has been returning status code 400, message No valid email when there are frequent requests.

A comparison between biocache-service logs and userdetails logs indicate that the request for user information may be interrupted before the request is received because the 400 response is always given at 5s and it is not certain userdetails has a record of it. More logging is required to be certain.

  1. Add more logging to getUserByEmailOrId.
  2. Fix use of cached lookupAuthUser result. While not applicable to this service, it can cache the not found error.
  3. Add config to control the timeout of restTemplate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant