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
Requests against sensor network endpoints, like sensor-networks/array_of_things_chicago/features or sensor-networks/array_of_things_chicago/sensors, return a 400 Bad Request header and an error JSON response if they fail to find any matching items. Example, in the middle of the lake:
This is in contrast to the event/shape endpoints, which return a success with an empty array of objects, and is also an incorrect application of the 400 status code because there was nothing wrong with the client's request. We just don't have any results to give them.
This is driving a significant amount of custom handling in the Explorer redesign, and masks any actual failures since we're having to swallow all of these AJAX errors.
The text was updated successfully, but these errors were encountered:
Requests against sensor network endpoints, like
sensor-networks/array_of_things_chicago/features
orsensor-networks/array_of_things_chicago/sensors
, return a 400 Bad Request header and an error JSON response if they fail to find any matching items. Example, in the middle of the lake:This is in contrast to the event/shape endpoints, which return a success with an empty array of objects, and is also an incorrect application of the 400 status code because there was nothing wrong with the client's request. We just don't have any results to give them.
This is driving a significant amount of custom handling in the Explorer redesign, and masks any actual failures since we're having to swallow all of these AJAX errors.
The text was updated successfully, but these errors were encountered: