question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Using Outgoing Webhook makes impossible to set card members in board

See original GitHub issue

Issue

Impacted version: v0.62

Server Setup Information:

  • Operating System: Red Hat Enterprise Linux 7.4
  • Deployment Method(tar/sandstorm/snap/docker/etc /http frontend (nginx, httpd, …)): 6x tar with Nginx frontend
  • Node Version: v4.8.5
  • MongoDB Version: v3.2.10
  • ROOT_URL environment variable (Is there a subfolder?): https://wekan.internal.domain.name/

Problem description: It is not possible to set “Members” for any card inside 1 board. This appears to only impact one of our boards. I have checked the board data in MongoDB and it appears to be sane. The process being followed is to create a card, then click on the created card and try to add a member to the card. When selecting a board member from the list the member has a tick next to their avatar for half a second before the tick disappears and there is no avatar shown in the “Members” section. The attempt to add the user to the card is recorded and shown in the Activity list.

The console prints the following error at this time: update failed: Error at y._livedata_result (https://wekan/dbd05c640f0d684fd0eab9118e8d2e09a3c6270f.js?meteor_js_resource=true:83:22762) at o (https://wekan/dbd05c640f0d684fd0eab9118e8d2e09a3c6270f.js?meteor_js_resource=true:83:8184) at https://wekan/dbd05c640f0d684fd0eab9118e8d2e09a3c6270f.js?meteor_js_resource=true:83:1063 at Array.forEach (native) at Function.A.each.A.forEach (https://wekan/dbd05c640f0d684fd0eab9118e8d2e09a3c6270f.js?meteor_js_resource=true:1:854) at C.t.socket.onmessage (https://wekan/dbd05c640f0d684fd0eab9118e8d2e09a3c6270f.js?meteor_js_resource=true:83:1021) at C.o.dispatchEvent (https://wekan/dbd05c640f0d684fd0eab9118e8d2e09a3c6270f.js?meteor_js_resource=true:82:1501) at C._dispatchMessage (https://wekan/dbd05c640f0d684fd0eab9118e8d2e09a3c6270f.js?meteor_js_resource=true:82:15091) at C._didMessage (https://wekan/dbd05c640f0d684fd0eab9118e8d2e09a3c6270f.js?meteor_js_resource=true:82:15977) at WebSocket.o.ws.onmessage (https://wekan/dbd05c640f0d684fd0eab9118e8d2e09a3c6270f.js?meteor_js_resource=true:82:18075)

Process screenshots below: image image image

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
nidgetgodcommented, Mar 29, 2019

Same problem here. And can’t add label too.

version docker v2.56

The strange thing is in the websocket message emailBuffer field.

Below is add user websocket message:

{
    "msg": "method",
    "method": "/cards/update",
    "params": [{
        "_id": "cc6EXiAtxop5xZYx4"
    }, {
        "$addToSet": {
            "members": "Jd8iJXhPFdvbbqFGF"
        },
        "$set": {
            "dateLastActivity": {
                "$date": 1553854479703
            }
        }
    }, {}],
    "id": "8"
}
{
    "msg": "changed",
    "collection": "users",
    "id": "2nqdF5fXCoK3Hn8bF",
    "fields": {
        "profile": {
            "starredBoards": ["NzTmTKTZBvY7JgHLt", "PKf8PaATGR7H8gWuX", "ZeS3qHmiugzJaWesB", "z9NBFjFH9S4Z22S5r", "3SRFoen26AWcbRmqp"],
            "fullname": "NidgetGod",
            "initials": "N",
            "avatarUrl": "/cfs/files/avatars/22W5juRLjbETmWSxR/photo.jpg",
            "language": "zh-TW",
            "hiddenSystemMessages": true,
            "boardView": "board-view-swimlanes",
            "templatesBoardId": "jDdCJwAmq3hLaNCeP",
            "boardTemplatesSwimlaneId": "9bRWrbvXDZ2T4LfGB",
            "cardTemplatesSwimlaneId": "qXcntrrmDgHrqpJTH",
            "listTemplatesSwimlaneId": "73PqNfkaqFabPCHyX",
            "emailBuffer": ["NidgetGod added member __member__ to card \"Task\" at list __list__ at swimlane __swimlane__ at board \"Kanban\"\nhttps://wekan/b/ZeS3qHmiugzJaWesB/cny-kanban/cc6EXiAtxop5xZYx4"
            ]
        }
    }
}
{
    "msg": "updated",
    "methods": ["8"]
}
{
    "msg": "result",
    "id": "8",
    "error": {
        "isClientSafe": true,
        "error": "error-invalid-webhook-response",
        "message": "[error-invalid-webhook-response]",
        "errorType": "Meteor.Error"
    }
}

Below is add label websocket message:

{
    "msg": "method",
    "method": "/cards/update",
    "params": [{
        "_id": "cc6EXiAtxop5xZYx4"
    }, {
        "$addToSet": {
            "labelIds": "pTWncS"
        },
        "$set": {
            "dateLastActivity": {
                "$date": 1553855033683
            }
        }
    }, {}],
    "id": "5"
}
{
    "msg": "changed",
    "collection": "users",
    "id": "2nqdF5fXCoK3Hn8bF",
    "fields": {
        "profile": {
            "starredBoards": ["NzTmTKTZBvY7JgHLt", "PKf8PaATGR7H8gWuX", "ZeS3qHmiugzJaWesB", "z9NBFjFH9S4Z22S5r", "3SRFoen26AWcbRmqp"],
            "fullname": "NidgetGod",
            "initials": "N",
            "avatarUrl": "/cfs/files/avatars/22W5juRLjbETmWSxR/photo.jpg",
            "language": "zh-TW",
            "hiddenSystemMessages": true,
            "boardView": "board-view-swimlanes",
            "templatesBoardId": "jDdCJwAmq3hLaNCeP",
            "boardTemplatesSwimlaneId": "9bRWrbvXDZ2T4LfGB",
            "cardTemplatesSwimlaneId": "qXcntrrmDgHrqpJTH",
            "listTemplatesSwimlaneId": "73PqNfkaqFabPCHyX",
            "emailBuffer": ["NidgetGod Added label __label__ to card \"Task\" at list __list__ at swimlane __swimlane__ at board \"Kanban\"\nhttps://wekan/b/ZeS3qHmiugzJaWesB/cny-kanban/cc6EXiAtxop5xZYx4"
            ]
        }
    }
}
{
    "msg": "updated",
    "methods": ["5"]
}
{
    "msg": "result",
    "id": "5",
    "error": {
        "isClientSafe": true,
        "error": "error-invalid-webhook-response",
        "message": "[error-invalid-webhook-response]",
        "errorType": "Meteor.Error"
    }
}
0reactions
xet7commented, Jun 12, 2019

This webhook-cardmember-bug is even smaller that I thought originally. Adding member to card works, if webhook works. But if webhook does not work (wrong url, does not send correctly) then adding member to card does not work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webhook Bug: Dont replace Values · Issue #1969 - GitHub
This has been bugging me ever since I use webhooks and results in spam without any useful information. I hope this gets fixed...
Read more >
Create an Outgoing Webhook - Teams | Microsoft Learn
Learn how to create Outgoing Webhook in Microsoft Teams, its key features and code sample (.NET, Node.js) to create custom bots to be...
Read more >
Webhooks - Trello - Atlassian Developer
Although webhooks are only accessible through the API currently, ... This can be the id of a member, card, board, or anything that...
Read more >
CHANGELOG.md ... - PLMlab
Fix REST API so Create card does now allow an empty member list. ... This also fixes bug that exporting some boards was...
Read more >
Product Update | Oct and Nov 2020 - Erxes
This allows everyone to connect erxes with any third-party apps that have webhooks. You can either send data from within erxes (outgoing ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found