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

Retrieving a published resource incorrectly gives 404 if its payload is not present in cache yet #749

Open
kurattila opened this issue Jun 23, 2022 · 0 comments
Labels
🪲 bug Something isn't working

Comments

@kurattila
Copy link

Description

Plgd/hub incorrectly indicates that a resource payload which is currently not in cache, will not ever be in cache, either.

How can it be reproduced?

  1. Register a device and wait for its registered event
  2. Wait for resources published event (but don't wait for any cache updated events)
  3. Try retrieving cached value of an already published resource => will return 404, since payload is missing from cache
  4. Client won't ever retry retrieving that same resource value, since 404 denotes it makes no sense to retry, in general

Environment

  • plgd Docker containers tag: 2.4.2

Additional context

Returning 503 instead of 404 would make the client know that after some retries, the payload is going to be present.

@kurattila kurattila added the 🪲 bug Something isn't working label Jun 23, 2022
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

1 participant