Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect parsing of Webhook URL #292

Open
msbidari opened this issue Oct 23, 2021 · 0 comments
Open

Incorrect parsing of Webhook URL #292

msbidari opened this issue Oct 23, 2021 · 0 comments

Comments

@msbidari
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant