Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luftdaten data causing internal server error Cannot read property 'createdAt' of null #180

Open
rvowles opened this issue Dec 24, 2018 · 0 comments

Comments

@rvowles
Copy link

rvowles commented Dec 24, 2018

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)

  1. 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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant