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

Exception Investigation: app.authentication.auth:AuthError #1135

Closed
3 tasks
ccostino opened this issue Jun 27, 2024 · 0 comments · Fixed by #1233
Closed
3 tasks

Exception Investigation: app.authentication.auth:AuthError #1135

ccostino opened this issue Jun 27, 2024 · 0 comments · Fixed by #1233
Assignees
Labels
bug engineering python Pull requests that update Python code

Comments

@ccostino
Copy link
Contributor

This is one of the errors we've seen captured in New Relic that we'd like to dig into and understand, if not also resolve.

Error message:
AuthError({'token': ['Unauthorized: authentication token must be provided']}, 401, service_id=None, api_key_id=None)
Path: /service/live-services-data
Exception: app.authentication.auth:AuthError

Traceback (most recent call last):
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/eventlet/greenthread.py", line 265, in main
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/gunicorn/workers/geventlet.py", line 157, in handle
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 55, in handle
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 108, in handle_request
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/newrelic/api/wsgi_application.py", line 669, in _nr_wsgi_application_wrapper_
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/flask/app.py", line 1498, in __call__
File "/home/vcap/app/notifications_utils/request_helper.py", line 80, in __call__
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/newrelic/api/wsgi_application.py", line 564, in _nr_wsgi_application_wrapper_
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/flask/app.py", line 1473, in wsgi_app
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/flask/app.py", line 878, in full_dispatch_request
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/newrelic/api/function_trace.py", line 166, in literal_wrapper
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/flask/app.py", line 1253, in preprocess_request
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/newrelic/hooks/framework_flask.py", line 363, in _nr_wrapper_Blueprint_before_request_wrapped_
File "/home/vcap/deps/0/python/lib/python3.12/site-packages/newrelic/api/function_trace.py", line 166, in literal_wrapper
File "/home/vcap/app/app/authentication/auth.py", line 61, in requires_admin_auth
File "/home/vcap/app/app/authentication/auth.py", line 69, in requires_internal_auth
File "/home/vcap/app/app/authentication/auth.py", line 175, in _get_auth_token

Implementation Sketch and Acceptance Criteria

  • Look through our log history at https://logs.fr.cloud.gov/ and see if any patterns emerge that might indicate what conditions cause this
  • Try and replicate the error, if possible
  • Follow up in this issue with any findings and possible remediation steps

Security Considerations

  • Be mindful of not sharing sensitive information.
  • We'd like to reduce the errors that occur in the application where possible to maintain application stability and performance, and reduce the chances that the application ends up in an error or invalid state.
@ccostino ccostino added engineering bug python Pull requests that update Python code labels Jun 27, 2024
@ccostino ccostino moved this from 🌱 New to ⬇ Up-Next in Notify.gov product board Jun 27, 2024
@terrazoon terrazoon self-assigned this Aug 1, 2024
@terrazoon terrazoon moved this from ⬇ Up-Next to 🏗 In progress (WIP: ≤ 3 per person) in Notify.gov product board Aug 1, 2024
@terrazoon terrazoon linked a pull request Aug 1, 2024 that will close this issue
@terrazoon terrazoon moved this from 🏗 In progress (WIP: ≤ 3 per person) to 👀 In review in Notify.gov product board Aug 2, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Notify.gov product board Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug engineering python Pull requests that update Python code
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants