Description
Specifying a valid BEGIN value in a timeseries request results in a System Error
I made a request for timeseries data for JPLT2.Flow-Out.Inst.1Hour.0.Rev-SWF-REGI with no BEGIN/END values, and received a response:
Request
curl -X 'GET'
'https://cwms-data.usace.army.mil/cwms-data/timeseries?name=JPLT2.Flow-Out.Inst.1Hour.0.Rev-SWF-REGI&office=SWF'
-H 'accept: application/json;version=2'
Response
{ "begin": "2022-12-05T17:42:00+0000[UTC]", "end": "2022-12-06T17:42:00+0000[UTC]", "interval": "PT0S", "interval-offset": 0, "name": "JPLT2.Flow-Out.Inst.1Hour.0.Rev-SWF-REGI", "office-id": "SWF", "page": "MTY3MDI2MzIwMDAwMHx8MjR8fDUwMA==", "page-size": 500, "time-zone": "US/Central", "total": 24, "units": "cfs", "value-columns": [ { "name": "date-time", "ordinal": 1, "datatype": "java.sql.Timestamp" }, { "name": "value", "ordinal": 2, "datatype": "java.lang.Double" }, { "name": "quality-code", "ordinal": 3, "datatype": "int" } ], "values": [ [ 1670263200000, 16, 0 ],
I then substituted the returned BEGIN and END values into the request, and I received System Error. It even does this if I just substitute in the BEGIN value, and let END default. I tried this both with and without the optional timezone. I also tried the example BEGIN and END values from the Swagger UI page with the same result:
Request
curl -X 'GET'
'https://cwms-data.usace.army.mil/cwms-data/timeseries?name=JPLT2.Flow-Out.Inst.1Hour.0.Rev-SWF-REGI&office=SWF&begin=2022-12-05T17%3A42%3A00%2B0000%5BUTC%5D'
-H 'accept: application/json;version=2'
Response
{
"message": "System Error",
"incidentIdentifier": "4288797622609029867",
"details": {}
}