linksmart / historical-datastore

Lightweight time-series storage on the Edge of IoT
Apache License 2.0
13 stars 2 forks source link

Internal server error when filter operator is invalid #90

Open farshidtz opened 3 years ago

farshidtz commented 3 years ago

When filtering with a bad operator, e.g. http://localhost:8085/registry/many/name/constains/temperature

The error should be 400, but getting:

{​​​​​​
"title": "Internal Server Error",
"status": 500,
"detail": "Error processing the filter request:Error processing the filter request:Unknown filter operation",
"instance": "/problem/55cb2ac5-8c7d-48f7-9570-6bbd5840cb52"
}​​​​​​