-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Bug Description
Different error have different response structures (JSON fields).
General Information
curl -X GET "https://api.ohsome.org/v1/elements/lengh?bboxes=8.67%2C49.39%2C8.71%2C49.42&filter=waterway%20in%20(river%2C%20canal%2C%20stream%2C%20drain%2C%20ditch)%20and%20geometry%3Alie&format=json&time=2014-01-01%2F2017-01-01%2FP1Y" -H "accept: application/json"
{
"timestamp" : "2022-12-14T11:54:25.412+00:00",
"status" : 404,
"error" : "Not Found",
"path" : "/elements/lengh"
}curl -X GET "https://api.ohsome.org/v1/elements/length?bboxes=8.67%2C49.39%2C8.71%2C49.42&filter=waterway%20in%20(river%2C%20canal%2C%20stream%2C%20drain%2C%20ditch)%20and%20geometry%3Alien&format=json&time=2014-01-01%2F2017-01-01%2FP1Y" -H "accept: application/json"
{
"timestamp" : "2022-12-14T11:55:02.834561",
"status" : 400,
"message" : "Invalid filter syntax. Please look at the additional info and examples about the filter parameter at https://docs.ohsome.org/ohsome-api. Detailed error message: line 1, column 67: whitespaces, EQUALS (=), NOT_EQUALS (!=) or in expected, EOF encountered.",
"requestUrl" : "https://api.ohsome.org/v1/elements/length?bboxes=8.67%2C49.39%2C8.71%2C49.42&filter=waterway%20in%20(river%2C%20canal%2C%20stream%2C%20drain%2C%20ditch)%20and%20geometry%3Alien&format=json&time=2014-01-01%2F2017-01-01%2FP1Y"Expected Behaviour
Both responses should contain the same fields (i.e. both should have the "message" field or "error" field)
tyrasd
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working