Basic problem with Webhook

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

The response to the curl command seems to not work either (HTTP/1.1 401 aka unauthorized)

We’d also need to see how your Webhook is doing it.

Hi,
Thanks for the response, I pasted the wrong Curl response.
After i got the error in the webhook, i tried to replicate the same error message using curl and did several tries with wrong token or no data or wring formatted data etc … i was not able to replicate the same message. when creating the post on the community forum, i pasted the wrong Curl response.

I will do some test tonight and will add the correct curl response and the webhook config.

Sorry for the response delay,
after reading several forum post, it seems that sending data to influxDB from particle cloud seems complicated.
I finally builded a TIG stack and use telefrag to receive the webhook, this way it work fine.