Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Calling GET /areas with no params returns 500 #109

Open
yamac-kurtulus opened this issue Feb 8, 2023 · 2 comments
Open

Calling GET /areas with no params returns 500 #109

yamac-kurtulus opened this issue Feb 8, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@yamac-kurtulus
Copy link
Contributor

Calling GET /areas with no params returns 500, it should return 400. It is a weird case as it throws the correct exception.

@OmerFI
Copy link

OmerFI commented Feb 8, 2023

@yamac-kurtulus
Copy link
Contributor Author

It may be because of raise statements in https://github.com/acikkaynak/deprem-yardim-backend/blob/main/applications/feeds/views.py#L60-L74

Yep, but those are proper validation errors, so they should be collected by DRF. I'll take a look in the coming hours.

@okankaraduman okankaraduman added the bug Something isn't working label Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants