Ivago: invalid parameters also return 404 #11
Labels
No Label
Brainstorm
Parent
bug
duplicate
enhancement
help wanted
idea
invalid
project/backend
project/frontend
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Depends on
#39 Improve handling of errors
Chewing_Bever/fej
Reference: Chewing_Bever/fej#11
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
When visiting the following URL:
https://fej.roosens.me/ivago?street=Lange+Violettestraat+(GENT)&number=170&start_date=2021-04-04&end_date=2021-04-255
Instead of responding with a Bad Request error, it returns the default 404 handler.
Update:
The problem is now that we don't really have a way to detect wether a route failed because it doesn't exist or because its parameters weren't correct.
I just realized this is expected behavior. The real problem here is the fact that the error system isn't specific enough at the moment, so any typo in a parameter results in a 404, instead of a meaningful message.
Ivago: invalid parameter errors aren't handled properlyto Ivago: invalid parameter also return 404Ivago: invalid parameter also return 404to Ivago: invalid parameters also return 404I think we can use a fairing to check the error type on response.