ChromeUX History API doesn't support NaN values #1970
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
For some domains, the chrome ux history api
chromeuxreport.googleapis.com/v1/records:queryHistoryRecord
could containNan
values.For example:
The api client does not support that and returns an error:
json: cannot unmarshal string into Go struct field TimeseriesBin.record.metrics.histogramTimeseries.densities of type float64
The
Bin
struct, used in the daily chrome ux api, does solve this by using a customUnmarshalJSON()
method withgensupport.JSONFloat64
.But in the
TimeseriesBin
struct is that step missing.Environment details
Steps to reproduce
The text was updated successfully, but these errors were encountered: