Http Request node - Making SAP API call

Describe the problem/error/question

I am migrating my postman success sample to n8n

here is the postman’s CURL. I am pretty sure n8n was able to get Token as it’s passed in from previous node as input.
image

Error message:

NodeApiError: Bad request - please check your parameters
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1540: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:698:19)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:656:53

share your workflow: Sorry but can i share screenshot instead? it contain client’s credential :smiley:

Information on your n8n setup

  • n8n version: 1.25.1
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): no idea
  • Running n8n via (Docker, npm, n8n cloud, desktop app): hosted (localhost)
  • Operating system: window

Hi @weilies_chok :wave: It doesn’t look like the SAP API is happy with that request - one thing I noticed here is that while in the cURL request you’re sending a GET, but in n8n you’re sending a POST - if you switch that around, does that fix this up?

2 Likes


it’s my bad. switching from POST to GET resolved the issue! thanks~~ :smiley:

1 Like

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