You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subject of the issue
Incorrect parsing of the Webhook URL
Your environment
Docker Image Version: emqx/emqx:4.3.8
Steps to reproduce
Pull the Docker emqx:4.3.8 image
Enable the Webhook plugin.
Configure all the webhook environment variables in environment file.
Run the Docker container.
Observe the following error
Expected behaviour
The complete url path should be taken and HTTP request should succeed.
Actual behaviour
The log below shows that, the HTTP request is failing due to incorrect URL parsing.
Subject of the issue
Incorrect parsing of the Webhook URL
Your environment
Docker Image Version: emqx/emqx:4.3.8
Steps to reproduce
Pull the Docker emqx:4.3.8 image
Enable the Webhook plugin.
Configure all the webhook environment variables in environment file.
Run the Docker container.
Observe the following error
Expected behaviour
The complete url path should be taken and HTTP request should succeed.
Actual behaviour
The log below shows that, the HTTP request is failing due to incorrect URL parsing.
Brief Environment variables set:
EMQX_WEB__HOOK__URL=http://cgsmservice:9097/commgatewaystate
EMQX_WEB__HOOK__RULE__CLIENT__CONNECTED__1={"action": "on_client_connected"}
EMQX_WEB__HOOK__RULE__CLIENT__DISCONNECTED__1={"action": "on_client_disconnected"}
Log Info:
2021-10-23T08:03:27.150082+00:00 [debug] [email protected]:55880 [WebHook] Send to: "/commgatewaystate", params: {"username":"NoBIDCommonAuthUser","proto_ver":4,"node":"[email protected]","keepalive":10,"ipaddress":"192.168.16.1","connected_at":1634976207171,"clientid":"1bcb712a-9838-11eb-8276-93a881c41b421634933620721","action":"client_connected"}
2021-10-23T08:03:28.159754+00:00 [debug] file: emqx_telemetry.erl, line: 369, mfa: {emqx_telemetry,report_telemetry,1}, msg: telemetry_data_reported, pid: <0.1805.0>
2021-10-23T08:03:37.180103+00:00 [error] [email protected]:55880 [WebHook] HTTP request error: normal
The text was updated successfully, but these errors were encountered: