USACE / instrumentation

Instrumentation project issue tracking and project planning
MIT License
4 stars 1 forks source link

Telemetry upload error: "400: Json: cannot unmarshal string into Go struct field Datum.data.vals of type float64" #141

Closed dennisgsmith closed 9 months ago

dennisgsmith commented 9 months ago

Describe the bug

Telemetry data hitting the api, but isn’t being populated in the tables.

Steps To Reproduce

  1. Register CR6/CR1000X datalogger in MIDAS
  2. Send data as csjson to telemetry API
  3. Define equivalency table mappings
  4. Upload to mapped timeseries

Expected behavior

The data should upload to API via defined equivalency table mappings, ignoring "NAN" and "INF"

Actual behavior

Returning error to user in data logger tab:

400: Json: cannot unmarshal string into Go struct field Datum.data.vals of type float64
dennisgsmith commented 9 months ago

Fixed with https://github.com/USACE/instrumentation-api/commit/555ea51191ff1245fe5910a295862be7514aaec6