Markoudstaal / node-red-contrib-discord-advanced

Recieve, send, edit and delete Discord messages in node-red.
MIT License
46 stars 16 forks source link

"Error: Expected token to be set for this request, but none was present" #100

Closed N0NameN0 closed 8 months ago

N0NameN0 commented 9 months ago

did i miss something ??

image

for information, no docker here, native debian, nodejs 20, nodered 3.1.0, node-red-contrib-discord-advanced 3.5.0

moseisleydk commented 8 months ago

I get the same error now, using:

msg.payload = "UP is home"; msg.channel = "xxxxxxxxxx18"; return msg;

javis86 commented 8 months ago

Could you export the flow and paste it here? Thanks

N0NameN0 commented 8 months ago

Could you export the flow and paste it here? Thanks

[ { "id": "505e87400a348b67", "type": "tab", "label": "Demo Discord", "disabled": false, "info": "", "env": [] }, { "id": "4932896908125e8d", "type": "debug", "z": "505e87400a348b67", "name": "debug 13", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 720, "y": 180, "wires": [] }, { "id": "1c4fc90e7eecbda7", "type": "discordMessage", "z": "505e87400a348b67", "name": "", "channelIdFilter": "", "token": "", "x": 500, "y": 180, "wires": [ [ "4932896908125e8d" ] ] }, { "id": "4e618cd3b95838a5", "type": "discordMessageManager", "z": "505e87400a348b67", "name": "", "channel": "", "token": "", "x": 530, "y": 280, "wires": [ [ "4932896908125e8d" ] ] }, { "id": "c814a079703e49c4", "type": "inject", "z": "505e87400a348b67", "name": "", "props": [ { "p": "payload" }, { "p": "channel", "v": "1156714157115183236", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "aze", "payloadType": "str", "x": 270, "y": 280, "wires": [ [ "4e618cd3b95838a5" ] ] } ]

javis86 commented 8 months ago

have all discord nodes bot configuration selected? image

N0NameN0 commented 8 months ago

have all discord nodes bot configuration selected?

yes both.

N0NameN0 commented 8 months ago

i just edited the discordmessagemanager node then revalidate it. i now have another message : image

javis86 commented 8 months ago

image On discord developer portal

N0NameN0 commented 8 months ago

it was. I had to delete the node, recreate the node, and all is now ok. Very strange that exact same configured nodes acted differently. Thx anyway. i close the issue.