Issue Integrating GET Webhook with Mobotix T24 and Homey Pro (HTTP 400 Error)

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

I don’t know if this will work for you, I was using a S15/S16, but it worked for me.
Try adding Google DNS (8.8.8.8) to your DNS list under:
admin menu - Ethernet interface
and try again.

Hello Mike,

Thank you for your suggestion! I appreciate you taking the time to share your experience with the S15/S16.

Unfortunately, I am unable to change the DNS settings on my Mobotix T24, as the fields appear grayed out and are currently set to 192.168.1.1. However, when I test the network configuration, the DNS test completes successfully (showing “OK”), which adds to my confusion.

If you have any further ideas or thoughts, I’d be happy to hear them! Thanks again for your help.

Best regards,
Francis

Hi Francis,

I also notice that you have set the Port address to “443” I see that port 443 is a secure port but seems it needs to be open on your router or firewall.

Could you try using port 80 to see if this will resolve it?