sensebox / ttn-osem-integration

integration for thethingsnetwork.org to opensensemap.org
MIT License
6 stars 3 forks source link

Correct error message if content-type is wrong #17

Open mpfeil opened 5 years ago

mpfeil commented 5 years ago

Right now if you POST data and don't specify Content-Type: application/json you get the following error message: 'malformed request: any of [dev_id, app_id, payload_fields, payload_raw] is missing'

Specify a better error message.