10-18-2023 04:14 AM
Hi team,
In our application, we were using webhook based on the target URL: https://0.0.0.0:8000 and was working fine. But recently, we observing some issues. Our application is unable to create webhook based on same target URL.
Here is the error :
webexteamssdk.exceptions.ApiError: [400] Bad Request - POST failed: HTTP/1.1 400 Bad Request (url = https://webhook-engine-a.wbx2.com/webhook-engine/api/v1/webhooks, request/response TrackingId = ROUTER_652FBA14-80C6-01BB-0119-AC12DB860119, error = 'Invalid syntax or address(site-local, link-local, multicast, loopback, or broadcast address not supported) for webhook targetUrl: https://0.0.0.0:8000') [Tracking ID: ROUTER_652FBA14-80C6-01BB-0119-AC12DB860119]
Because of that, our containers based application is not running and raising exception mentioned above.
Here are containers:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
40b73f3658a5 cxtm-proxy "nginx -g 'daemon of…" 6 days ago Up 2 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp cxtm-proxy-1
c96bf16688f5 cxtm-backend "flask run" 6 days ago Restarting (1) 33 seconds ago cxtm-backend-1
We are facing this problem since last week. Checked manually from webex webhook post api and got same error. Wanted to check, if there are some changes from webex side and any workaround will be appriciated.
Thank you!
Solved! Go to Solution.
10-18-2023 05:09 AM
There were some enhancements to improve overall security with webhooks recently, which mean that site-local, link-local, multicast, loopback, or broadcast address are not supported any more. I think https://0.0.0.0/ is a loopback (localhost) address so it is the reason why this is failing. You can create webhooks with other IP addresses, just not ones that fall under the above highlighted descriptions.
10-19-2023 10:31 AM
Thank you for the confirmation.
Yes, now I have to use a specific address for webhook creation.
Thank you!
10-18-2023 05:09 AM
There were some enhancements to improve overall security with webhooks recently, which mean that site-local, link-local, multicast, loopback, or broadcast address are not supported any more. I think https://0.0.0.0/ is a loopback (localhost) address so it is the reason why this is failing. You can create webhooks with other IP addresses, just not ones that fall under the above highlighted descriptions.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide