Why isn't the whole of my body parameter being passed?

Describe the problem/error/question

I’ve sent a POST request via webhook to a HTTP GET request, however it seems like the user_id is not being received in the body parameter

What is the error message (if any)?

ERROR: Bad request - please check your parameters

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

Hi @Jamaal

You cannot send a body in a GET request, I think you need to change this to a POST.

Also sometimes you need to use JSON.stringify($json.body) to make sure a string body is send and not a js object.

2 Likes

Thanks for your help, it worked.

2 Likes

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