Hi,
I’m quite new to Particle and trying to do a webhook with a hosted influxdb and grafana
Using curl it’s working correctly but when using a webhook i got errors.
Here is a example of the curl command :
curl -i -XPOST 'https://corlysis.com:8086/write?db=myDB' -u token:d2eXXXXXXXXXXXXXXXXb9XXX --data-binary “something,eventid=1 invite=1”
CURL response :
HTTP/1.1 401
Date: Wed, 05 Jun 2019 22:59:27 GMT
Server: Apache/2.4.29 (Ubuntu)
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Accept,Accept-Encoding,Authorization,Content-Length,Content-Type
Transfer-Encoding: chunked
Content-Type: application/json
With Webhook i go an error:
HTTP/1.1 400
Date: Wed, 05 Jun 2019 23:00:55 GMT
Server: Apache/2.4.29 (Ubuntu)
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Accept,Accept-Encoding,Authorization,Content-Length,Content-Type
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json
{"error":"unable to parse 'testDB=%7B%20myDB%2Ceventid%3D1%20invite%3D1%7D': missing fields"}
Anyone got an idea what’s wrong ?
Many thanks in advance
Nick