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

consider better error message when device not found #413

Open
edaniszewski opened this issue Jan 12, 2021 · 0 comments
Open

consider better error message when device not found #413

edaniszewski opened this issue Jan 12, 2021 · 0 comments
Assignees

Comments

@edaniszewski
Copy link
Contributor

from a recent script:

Running Synse query:
  method: POST
  url:    localhost:5000/v3/write/wait/d7604ac1-3444-5fe0-bada-e8b9f11a411b
  data:   {"action": "set", "data": "4"}

{
  "http_code": 404,
  "description": "resource not found",
  "timestamp": "2021-01-12T12:45:10Z",
  "context": "plugin not found for device d7604ac1-3444-5fe0-bada-e8b9f11a411b"
}

The error message says that the plugin is not found for device because its looking up a plugin to route the request to, so it sorta makes sense to someone familiar with the internals of synse, but its maybe a better error message to say that the device was not found, and maybe add in extra context about how theres an off chance that it could be due to plugin cache invalidation stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant