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

AttributeError: 'str' object has no attribute 'get' #1496

Closed
sentry-io bot opened this issue Aug 2, 2023 · 3 comments
Closed

AttributeError: 'str' object has no attribute 'get' #1496

sentry-io bot opened this issue Aug 2, 2023 · 3 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Aug 2, 2023

Sentry Issue: CARE-RT

AttributeError: 'str' object has no attribute 'get'
  File "care/facility/tasks/asset_monitor.py", line 105, in check_asset_status
    if asset.meta.get("local_ip_address") in status_record.get(

Error in Asset Status Check
@rithviknishad
Copy link
Member

@Ashesh3 any idea on why this is happening?

@Ashesh3
Copy link
Member

Ashesh3 commented Aug 3, 2023

Taking a look

@Ashesh3 Ashesh3 self-assigned this Aug 3, 2023
@Ashesh3
Copy link
Member

Ashesh3 commented Aug 3, 2023

@rithviknishad Expected error, the middleware was down, so when iterating through the status records, it was not an array of statuses, instead array of characters of the error page's html. We can ignore it for now.

URL in above error: https://dev_middleware.coronasafe.live/devices/status
Sample working hostname: https://dev-server-2.coronasafe.live/devices/status

@Ashesh3 Ashesh3 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2023
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

2 participants