Description
I have a new Luftdaten sensor running 121C - it attempts to post data to the OpenSenseMap ingress API and fails and gets an internal server error.
Sending to opensensemap:
Start connecting to ingress.opensensemap.org
Requesting URL: /boxes/5c1f1981919bf8001a456ae0/data?luftdaten=1
10569816
{"software_version": "NRZ-2018-121C", "sensordatavalues":[{"value_type":"SDS_P1","value":"1.87"},{"value_type":"SDS_P2","value":"1.05"},{"value_type":"BMP_pressure","value":"100659.00"},{"value_type":"BMP_temperature","value":"26.80"},{"value_type":"samples","value":"924605"},{"value_type":"min_micro","value":"147"},{"value_type":"max_micro","value":"1849213"},{"value_type":"signal","value":"-52"}]}
HTTP/1.1 500 Internal Server Error
Content-Length: 78
Content-Type: application/json; charset=utf-8
Date: Mon, 24 Dec 2018 03:39:26 GMT
Connection: close
{"code":"InternalServer","message":"Cannot read property 'createdAt' of null"}
closing connection
Expected Behavior
It should save the data and return 200?
Current Behavior
As above
Possible Solution
Steps to Reproduce (for bugs)
- Post the above JSON to your API and watch it explode
Context
I cannot send data to opensensemap
Your Environment
- Version used:
- Environment name and version (e.g. Node v8.3.0):
- Server type and version:
- Operating System and version:
- Link to your project: