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 · 1 comment
Open

add more logging to userdetails responses #939

adam-collins opened this issue Jan 20, 2025 · 1 comment
Assignees
Milestone

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.
@adam-collins
Copy link
Contributor Author

Reducing scope to just the logging. The underlying issue was with the auth system and it was resolved shortly after this issue was created.

adam-collins added a commit that referenced this issue Mar 5, 2025
…ls-logging

#939 add logging to AuthServiceImpl.getUserByEmailOrId
@adam-collins adam-collins added this to the 3.7.0 milestone Mar 5, 2025
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