fix 500 HTTP error when requesting raw data for a particular timeseries