raintank / worldping-api

Worldping Backend Service
Other
25 stars 18 forks source link

http 500 on bad request #25

Closed woodsaj closed 8 years ago

woodsaj commented 8 years ago

Issue by Dieterbe Thursday Sep 10, 2015 at 08:51 GMT Originally opened as https://github.com/raintank/grafana/issues/459


2015/09/07 09:42:53 [endpoint.go:64 UpdateEndpoint()] [E] Failed to update endpoint: Endpoint not found
2015/09/07 09:42:53 [I] Completed /api/endpoints 500 Internal Server Error in 54.53458ms

this is a bad request, not internal server error.

2015/09/10 08:39:04 [endpoint.go:51 AddEndpoint()] [E] Failed to add endpoint: Invalid Collector specified for Monitor
2015/09/10 08:39:04 [I] Completed /api/endpoints 500 Internal Server Error in 61.315763ms

same. see also https://github.com/grafana/grafana/issues/2686

woodsaj commented 8 years ago

fixed in latest build. Validation errors like this now return a 400 error.