n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
50.39k stars 8.19k forks source link

Discord node with Custom API Call #9052

Open ghost opened 8 months ago

ghost commented 8 months ago

Bug Description

I'm getting an error if I use Custom API Call with Discord node

To Reproduce

  1. Create a new workflow
  2. Add Discord node
  3. Select the preferred Connection Type
  4. Select the Credential for Step 3
  5. Select Custom API Call for Resource
  6. Test workflow

Expected behavior

It should proceed to the HTTP Request node for the custom API call

Operating System

Ubuntu Linux

n8n Version

1.34.2

Node.js Version

--

Database

SQLite (default)

Execution mode

main (default)

ghost commented 8 months ago
{
  "errorMessage": "Could not get parameter",
  "errorDetails": {
    "errorExtra": {
      "parameterName": "operation"
    }
  },
  "n8nDetails": {
    "n8nVersion": "1.34.2 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "Error: Could not get parameter",
      "    at getNodeParameter (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1529:15)",
      "    at Object.getNodeParameter (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2205:24)",
      "    at Object.router (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Discord/v2/actions/router.js:41:28)",
      "    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Discord/v2/DiscordV2.node.js:19:38)",
      "    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:724:42)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:660:68",
      "    at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1062:20"
    ]
  }
}
Joffcom commented 8 months ago

Hey @sympherjim,

Thanks for the report, The Custom API Call option isn't actually meant to run at all and instead it should show a message to guide you to the http request node (at the moment).

We have NODE-851 open to fix this in the future.