Thread: MUSTANG web service patch - Today at 2PM PST

Started: 2017-01-09 19:38:44
Last activity: 2017-01-09 22:38:57
Robert Casey
2017-01-09 19:38:44

Hi MUSTANG Users-

A minor patch to the MUSTANG web services will commence at 2PM PST today. No downtime is expected, but please be aware of the following changes, most particularly item number 1 as this may affect your web browser experience or client behavior.

1. Default HTTP return code for 'No Data' now set to 204. This brings MUSTANG in line with the behavior of IRIS's other web services. Note: Some web browsers will show a blank page when confronted with a 204. To alleviate this effect, use the 'nodata' parameter in your queries and set the value to 404. ( Ex: http://service.iris.edu/mustang/measurements/1/query?format=text&metric=num_gaps&net=XX&sta=XXX&nodata=404 )

2. JSONP output for the /metrics web service would return a 404 Not Found code for normal data returns. Now fixed and returns a 200.

3. When querying multiple metrics, a non-thread-safe race condition existed with date conversions which would result in random garbled date values. Now fixed. This problem did not exist with single metric queries.


More improvements to come in the near future. Thank you for your patience.

-Rob



  • Robert Casey
    2017-01-09 22:38:57

    This update has been completed.

    -R


    On Jan 9, 2017, at 11:38 AM, Robert Casey <rob<at>iris.washington.edu> wrote:


    Hi MUSTANG Users-

    A minor patch to the MUSTANG web services will commence at 2PM PST today. No downtime is expected, but please be aware of the following changes, most particularly item number 1 as this may affect your web browser experience or client behavior.

    1. Default HTTP return code for 'No Data' now set to 204. This brings MUSTANG in line with the behavior of IRIS's other web services. Note: Some web browsers will show a blank page when confronted with a 204. To alleviate this effect, use the 'nodata' parameter in your queries and set the value to 404. ( Ex: http://service.iris.edu/mustang/measurements/1/query?format=text&metric=num_gaps&net=XX&sta=XXX&nodata=404 )

    2. JSONP output for the /metrics web service would return a 404 Not Found code for normal data returns. Now fixed and returns a 200.

    3. When querying multiple metrics, a non-thread-safe race condition existed with date conversions which would result in random garbled date values. Now fixed. This problem did not exist with single metric queries.


    More improvements to come in the near future. Thank you for your patience.

    -Rob




20:10:29 v.b3198453