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

ObsDetails calls observations/viewed_updates while signed out #2528

Open
joergmlpts opened this issue Dec 9, 2024 · 1 comment
Open

ObsDetails calls observations/viewed_updates while signed out #2528

joergmlpts opened this issue Dec 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@joergmlpts
Copy link
Contributor

Describe the bug
When not signed in, an API error is reported in debug builds on each navigation to ObsDetails.

To Reproduce
Steps to reproduce the behavior:

  1. Run a debug build of v0.56.0+131.
  2. Do not sign in; sign out if you are signed in.
  3. Go to Explore, Observations, tap an observation.
  4. An API error is reported:
ERROR  Error requesting https://api.inaturalist.org/v2/observations/4d46480c-4a47-499b-96dd-041853201e4f/viewed_updates (status: 401):
   {"status":"401","errors":[{"errorCode":"401","message":"JWT is missing or invalid"}]} [INatApiError: {"status":"401","errors":[{"errorCode":"401","message":"JWT is missing or invalid"}]}]

Screenshot_1733614526

Expected behavior
When we are not signed in, do not issue API calls that require us to be signed in.

Context (please complete the following information):

  • Device: Pixel 7 Pro
  • OS: Android 15
  • App version: v0.56.0+131
@joergmlpts joergmlpts added the bug Something isn't working label Dec 9, 2024
@kueda
Copy link
Member

kueda commented Dec 9, 2024

I can replicate in an iOS simulator.

@kueda kueda changed the title ObsDetails encounters API error when not signed in ObsDetails calls observations/viewed_updates while signed out Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants