USGS-WiM / StreamStatsServices

StreamStats REST Services
https://streamstats.usgs.gov/streamstatsservices
Other
1 stars 0 forks source link

Watershed endpoint returns HTTP 200 OK when no watershed geometry is returned #67

Open amedenblik opened 2 years ago

amedenblik commented 2 years ago

A user reports that the following request returns HTTP 200 OK, even though the watershed geometry is empty in the response. A response error like 500 would be more appropriate.

https://streamstats.usgs.gov/streamstatsservices/watershed.geojson?rcode=MT&xlocation=-115.080189&ylocation=48.714816&crs=4326&includeparameters=false&includeflowtypes=false&includefeatures=true&simplify=true\

Sometimes this request does return correctly.

Log file with errors: delineation.log

FreshDesk ticket: https://streamstats.freshdesk.com/a/tickets/116984