Comments (9)
Hello,
It might be related to this PR #11032 @zhongwencool could you please take a look?
This pr was released in 5.1.
from emqx.
Hello,
It might be related to this PR #11032
@zhongwencool could you please take a look?
from emqx.
It looks like a compatibility issue between 5.3.0 data integration schema and 5.4.1.
I noticed that you are trying to override the http integration url with environment variable EMQX_CONNECTORS__HTTP__MQTT_MESSAGE__URL
But there were no EMQX_BRIDGE__...
in the 5.3.0 run?
Could you share your base config in 5.3 with regards to the http/webhook data integration?
from emqx.
The URL needed to be set in both places, otherwise the flow page said that the flow was connected to a deleted action.
The EMQX_BRIDGE__
settings make it into the config map, so they are part of the ENV when I did the 5.3.0 run, but there is no log line for them. However, the config breaks if it's missing.
Aside from authn/authz/listener sections, these are all the actions/bridges/connectors/rules in the config.
emqxConfig:
EMQX_ACTIONS__HTTP__MQTT_MESSAGE__CONNECTOR: "mqtt_message"
EMQX_BRIDGES__WEBHOOK__MQTT_MESSAGE__URL: "http://mqtt-api-host.mqtt-namespace/message"
EMQX_CONNECTORS__HTTP__MQTT_MESSAGE__URL: "http://mqtt-api-host.mqtt-namespace/message"
EMQX_ACTIONS__HTTP__MQTT_EVENT__CONNECTOR: "mqtt_event"
EMQX_BRIDGES__WEBHOOK__MQTT_EVENT__URL: "http://mqtt-api-host.mqtt-namespace/event"
EMQX_CONNECTORS__HTTP__MQTT_EVENT__URL: "http://mqtt-api-host.mqtt-namespace/event"
EMQX_RULE_ENGINE__RULES__MQTT_MESSAGE__ACTIONS: '[\"webhook:mqtt_message\"]'
EMQX_RULE_ENGINE__RULES__MQTT_MESSAGE__SQL: |-
SELECT
id,
clientid,
username,
base64_encode(payload) AS payload,
peerhost,
topic,
qos,
flags,
headers,
pub_props,
timestamp,
publish_received_at,
node
FROM
\"#\"
EMQX_RULE_ENGINE__RULES__MQTT_EVENT__ACTIONS: '[\"webhook:mqtt_event\"]'
EMQX_RULE_ENGINE__RULES__MQTT_EVENT__SQL: |-
SELECT
*
FROM
\"$events/message_delivered\",
\"$events/message_acked\",
\"$events/message_dropped\",
\"$events/client_connected\",
\"$events/client_disconnected\",
\"$events/client_connack\",
\"$events/client_check_authz_complete\",
\"$events/session_subscribed\",
\"$events/session_unsubscribed\",
\"$events/delivery_dropped\"
from emqx.
Hi @KazW
Thank you for your reply.
The reason I'm asking is: it seems odd that you have EMQX_BRIDGES__
and EMQX_ACTIONS__
at the same time.
Since 5.3, bridge
s are being gradually refactored to action + connector
.
For backward compatibility, if bridge
is configured, EMQX splits it into two parts (action
and connector
) when loading the configs.
The behavior is undefined when both bridge
and action + connector
exist for the same webhook integration.
Maybe it worked in 5.3 by accident, then in 5.4 there is more strict schema check.
The error message provided in your original post #{kind => validation_error,path => "actions.http.mqtt_message.parameters",reason => required_field}
hints that the parameters
filed is not found: https://www.emqx.io/docs/en/v5.4.1/hocon/#V-actions-S-actions-http-S-http_action-parameters
If you want to keep using the bridge
config,
you can follow the config schema here: bridges
If you wish to move to the new action
+ connector
config style,
you can follow the config schema here:
actions
connectors
Note: eventually we will stop publishing documents for bridge
, but keep only action
and connector
.
from emqx.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from emqx.
Just wanted to ping this to keep it open. @zmstone, sorry I forgot to reply to you and mention that I had seen the errors in the log and tried to migrate my config before opening this, but hadn't been able to get a working deployment while using action/connector style configs.
I should get sometime to revisit this soon as I'm almost done completing our migration to EMQX.
from emqx.
Hi @KazW
Thank you for the update.
I will keep this issue open. Removed the wait
tag for now.
from emqx.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from emqx.
Related Issues (20)
- Can't add users on touch screen device HOT 7
- Action output to external HTTP server - authorization header issue HOT 2
- The client disconnects after publish message whose topic starts with '$' HOT 2
- Not getting Emqx dashboard HOT 1
- EMQX Clustering - Message Replication HOT 4
- STOMP GW does not send heartbeat to client HOT 4
- EMQX cluster cannot restart after persistence HOT 1
- After STOMP enables authentication, authentication fails when the account password carries a colon
- runq_overload everyday for few minutes HOT 4
- Receive Maximum Not Sent in Bridge CONNACK HOT 4
- ~10ms latency on publishing and receiving message on the same machine on windows HOT 6
- webhook监听上下线事件时,事件时序有误,原因不明(connected and disconnected events may out of order) HOT 3
- Authentication fails periodically and restart fixes it HOT 9
- For my project required kafka and kerberos integration with EMQX opensource,So any how is it possible to do these integration with Emqx OPenSource version HOT 2
- Get acknowledgement from subscriber(s) after publish messages HOT 2
- Restored retained message have no payload HOT 2
- error messages received and MQTT broker keep running up and down, very HOT 4
- Several protocol violations or bugs in EMQX HOT 26
- Upgrade to Openssl 3.0 or higher HOT 7
- LDAP server treated as down due to wrong error returned than expected? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emqx.