Skip to content

Fix Invalid JSON on MessageEventTrigger #76

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion message-event-trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (RED) {
node.engine.engineClient.events
.triggerMessageEvent(config.messagename, {
processInstanceId: msg.processinstanceid,
payload: msg.payload,
payload: { payload: msg.payload },
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mit diesem Ergebnis habe ich aber immer "payload" als Schlüssel dabei. Schau mal das Servicedesk-Ticket an.

https://5minds.atlassian.net/browse/PSD-35

Da ist ein Beispiel drin. Schau mal und melde Dich dann noch einmal.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich hab leider keinen Zugriff auf den LInk

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luisthieme wir (@roblen45 ) und ich haben den Fix gemacht. Es node.error kann mit dem catch-Error-Node angefangen werden. So dass es bei dem message-send-Node bereits vorhanden war. Wir haben die notwendigen Änderungen alle übernommen und in das Paket 1.6.5 eingebaut. (Dev: 1.6.5-develop-054f70-m5yacm5t)

.then((result) => {
msg.payload = result;
Expand Down
Loading