Hello everyone,
I am encountering difficulties integrating a webhook with my Mobotix T24 camera and the Webhook Manager on Homey Pro. I have configured a network message profile to send HTTP GET notifications to a webhook on Homey Pro, but I consistently receive a “400 Bad Request” response.
Here are the details of my current configuration:
Configuration in Mobotix T24:
Network Message Type: Custom Configuration
Target Address: webhooks.athom.com:443
Data Protocol: HTTP/1.1-Request
CGI Path: /webhook/XXXXXXXXXXXX/?token=XXXXXXXXXXXX&event=test&data1=data_field_1_here&data2=data_field_2_here&data3=data_field_3_here
Data Type: Text only
Message: (left blank as it is a GET request)
Send Port: 443
When I test the network connection, here are the logs I receive:
vbnet
Copier le code
INF: loading notify profile ip_66a0edc5 …
INF: name given by user is Homey …
INF: set profile send order “sequential”
INF: set profile address “webhooks.athom.com:443”
INF: set profile data type “msg”
INF: set profile http version: “HTTP/1.0”
INF: set profile http cgi path: "/webhook/XXXXXXXXXXXX/?token=XXXXXXXXXXXX&event=test&data1=data_field_1_here&data2=data_field_2_here&data3=data_field_3_here
INF: set profile http authorize: “”
INF: try to resolve IP address of host “webhooks.athom.com” …
INF: resolved “webhooks.athom.com” ip-address as 54.246.224.10
INF: force generation of current JPEG …
INF: [hdl#1] connection established (ip=54.246.224.10, port=443, fd=2) …
INF: reached data limit of 512 bytes … (stop reading)
INF: [hdl#1] HTTP-Headers: HTTP/1.1 400 Bad Request
INF: [hdl#1] HTTP-Headers: Server: awselb/2.0
INF: [hdl#1] HTTP-Headers: Date: Wed, 24 Jul 2024 12:33:56 GMT
INF: [hdl#1] HTTP-Headers: Content-Type: text/html
INF: [hdl#1] HTTP-Headers: Content-Length: 220
INF: [hdl#1] HTTP-Headers: Connection: close
Result:
ERR: HTTP request to 54.246.224.10:443 was incomplete (HTTP 400)!
Configuration in Homey Pro:
I am using the Homey Pro Webhook Manager app to handle incoming webhooks. Here are the details provided by Homey to configure the webhook:
Webhook URL (GET): https://webhooks.athom.com/webhook/XXXXXXXXXXXX/?token=XXXXXXXXXXXX&event=your_event_name_here&data1=data_field_1_here&data2=data_field_2_here&data3=data_field_3_here
When I test the webhook URL directly in a browser, it works correctly with Homey Pro. However, when the Mobotix T24 camera sends the GET request, I receive a 400 error.
I have tried various configurations, including simplifying the CGI path and adjusting the parameters, but I still receive the same error.
Do you have any suggestions on what might be causing this error and how I can resolve it?
Thank you in advance for your help!
Best regards,
Francis
MOBOTIX T24M-Secure
MX-V4.7.3.11-r6