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

Getting InternalServerError 500 instead of Bad Input 400 when trying to set a device resource value with some wrong/invalid parameter in PUT handler of service's command request. #495

Open
pranavkumaradarji-eaton opened this issue Nov 8, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@pranavkumaradarji-eaton
Copy link

Relevant Package [REQUIRED]

We are facing this with our customized service when trying to update/set a device channel resource value with the wrong/invalid parameter. We want to return the 4xx code, due to an invalid data set by the client. But no provision to return the other code except 200/500 in the PUT handler of the service's device command.

Description [REQUIRED]

We are currently getting "InternalServerError, 500" when trying to set a device resource value with some wrong/invalid parameter. The expected error with the status code should be "Bad Input, 400".

We observed that there is only provision to return 200(True) or 500 (False) errors, the "edgex-sdk-c" should be improved to return a REST standard error code 4xx,

@pranavkumaradarji-eaton pranavkumaradarji-eaton added the bug Something isn't working label Nov 8, 2023
@lindseysimple lindseysimple added the help wanted Extra attention is needed label Nov 13, 2023
@lindseysimple lindseysimple added this to the Odessa milestone Dec 12, 2023
@github-project-automation github-project-automation bot moved this to New Issues in Technical WG Jul 30, 2024
@jumpingliu jumpingliu moved this from New Issues to Release Backlog in Technical WG Jul 30, 2024
@cloudxxx8 cloudxxx8 moved this from Release Backlog to Icebox in Technical WG Oct 1, 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 help wanted Extra attention is needed
Projects
Status: Icebox
Development

No branches or pull requests

2 participants