Discord work but return this message - The resource you are requesting could not be found

Describe the problem/error/question

I’m using HTTP Call to edit a message from discord, when I try the message is edited but n8n return to me a error message

What is the error message (if any)?

HTTP Code

404

Stack

NodeApiError: The resource you are requesting could not be found
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1554:27)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:706:19)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:656:53
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1058:20

{
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “6aba10cfa9d929b3df266fb467e514d203a189c25fc4e140ee25fe8e39c7c9d6”
},
“nodes”: [
{
“parameters”: {
“method”: “PATCH”,
“url”: “=https://discord.com/api/webhooks/{token}/{token}/messages/{{ $(‘Encontrar Key’).item.json.lastMessage }}”,
“sendBody”: true,
“specifyBody”: “json”,
“jsonBody”: “{\n "content": "alberto walid ammar"\n}\n”,
“options”: {}
},
“id”: “e37fc30b-3afa-4fea-95d6-6ca534652f76”,
“name”: “HTTP Request”,
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.1,
“position”: [
1160,
40
]
}
],
“connections”: {},
“pinData”: {}
}

  • n8n version: 1.27.2
  • Database (default: SQLite): Default
  • n8n EXECUTIONS_PROCESS setting: default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • **Operating system:**Linux(Server), Windows(browser)

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

According to the Discord API documentation, this URL is supposed to look like:

/channels/{channel.id}/messages/{message.id}

Are you sure you’re accessing the correct endpoint? The double {token} in your URL looks a bit strange too.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.