You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/isochrone and /spt return 404 when point is missing #1991
I just had the same problem with /spt. Returning 404 seems very wrong as it makes it look like the whole endpoint is missing and we are not shown the intended error message (no point specified). There is also another problem for /spt: Since it returns text/csv the serialization of exceptions to json does not work and we are getting 500 errors instead of the error messages in json format.
With 7df3192 we now get 400 when the point is missing. Also I made sure that for /spt (which normally returns csv) we get a json error message. Not sure if we could achieve the same with framework features, so anybody who can do better please go ahead (@michaz?).
@mc51 for 0.13 you still get 404 if you do not specify the point, but obviously you need to specify a point anyway
Activity
karussell commentedon Apr 16, 2020
Indeed we return a different 400 message for missing parameters. This could be more consistent.
But you only need to specify at least the point parameter: http://localhost:8989/isochrone?point=43.733647%2C7.415686 and see that it will work.
easbar commentedon Apr 16, 2020
I just had the same problem with
/spt. Returning 404 seems very wrong as it makes it look like the whole endpoint is missing and we are not shown the intended error message (no point specified). There is also another problem for /spt: Since it returnstext/csvthe serialization of exceptions to json does not work and we are getting 500 errors instead of the error messages in json format.[-]Isochrone endpoint missing from local server[/-][+]/isochrone and /spt return 404 when point is missing[/+]easbar commentedon Apr 16, 2020
@karussell don't you think this should be fixed? If not feel free to close again.
easbar commentedon Apr 16, 2020
With 7df3192 we now get 400 when the point is missing. Also I made sure that for /spt (which normally returns csv) we get a json error message. Not sure if we could achieve the same with framework features, so anybody who can do better please go ahead (@michaz?).
@mc51 for 0.13 you still get 404 if you do not specify the point, but obviously you need to specify a point anyway
karussell commentedon Apr 16, 2020
Thanks!
Use dw20 facility for custom request parameter type