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

Bug: Bad error status after a GET request on the API #2509

Closed
adcoly opened this issue Sep 13, 2023 · 0 comments · Fixed by #2522
Closed

Bug: Bad error status after a GET request on the API #2509

adcoly opened this issue Sep 13, 2023 · 0 comments · Fixed by #2522
Assignees
Labels
bug Something isn't working

Comments

@adcoly
Copy link

adcoly commented Sep 13, 2023

Expected Behavior

When I'm trying to Get information from a specific LoRaWan device model that does not exist, I should have an answer with the 404 error code.

Current Behavior

I receive the 400 error code.

Steps to Reproduce

  1. Send a GET request on a non-existing device model
    example with cURL:

curl --location 'https://myportal.azurewebsites.net/api/lorawan/models/non_existing_model_id'
--header 'Authorization: Bearer <my_token>'

Context (Environment)

Portal version: 4.13.2.170
LoRaWAN Stack version: 2.1.0

Logs

Result of the cURL command:
image

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
Status: 📝 Todo
Development

Successfully merging a pull request may close this issue.

2 participants