Hi, Im new to trello and wehooks and strugeling with a simple task. Createing the wehoook returns me this error message on my “callback” server:
Error from server. Status Code: 400 Data from server: {"message":"URL (https://user:password@domain.com/rest/handler/restdatasource_KEY/trello_webhook) did not return 200 status code, got 400","error":"ERROR"}
If i do the same call via CURL directly to my callback server it works.
curl -d "@./custom.json" -v --insecure https://user:password@domain.com/rest/handler/restdatasource_key/trello_webhook
* About to connect() to domain.com port 443 (#0)
* Trying IP...
* Connected to domain.com (IP) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate:
* subject: CN=domain.com
* start date: Mar 30 07:26:46 2020 GMT
* expire date: Jun 28 07:26:46 2020 GMT
* common name: domain.com
* issuer: CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US
* Server auth using Basic with user 'user'
> POST /rest/handler/restdatasource_key/trello_webhook HTTP/1.1
> Authorization: Basic key
> User-Agent: curl/7.29.0
> Host: domain.com
> Accept: */*
> Content-Length: 1631
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Server: nginx/1.17.7
< Date: Mon, 20 Apr 2020 08:08:18 GMT
< Content-Type: text/javascript
< Content-Length: 165
< Connection: keep-alive
< Vary: Cookie
< X-Frame-Options: SAMEORIGIN
< Expires: Mon, 20 Apr 2020 08:08:17 GMT
< Cache-Control: no-cache
< X-Xss-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< Strict-Transport-Security: max-age=31536000; includeSubdomains
< Content-Security-Policy: default-src https: data: blob: 'unsafe-inline' 'unsafe-eval'; connect-src https: wss:; worker-src https: blob:; upgrade-insecure-requests
<
* Connection #0 to host domain.com left intact
My Question is:
how dose Trello make the request?
what could be the issue for not gettingt 200?
what can i perhaps add as header information to the webhook so trello can handel the callbackurl etc.?
Thanks for your help.