Get request still seems to be sending body

Describe the problem/error/question

I’m am trying to make a get request to fal.ai to get a request I made. However, I am getting this error:
Your request is invalid or could not be processed by the service [item 0]value is not a valid dict

It seems like the body is somehow still being sent in the request by n8n, but I don’t know how to not send it.

Here is the curl:

curl --request GET
–url https://queue.fal.run/fal-ai/kling-video/requests/$REQUEST_ID
–header “Authorization: Key $FAL_KEY”

Here is the API doc I’m looking at:

Error code

422

Full message

422 - "{\"detail\":[{\"loc\":[\"body\"],\"msg\":\"value is not a valid dict\",\"type\":\"type_error.dict\"}]}"

Request

{ "headers": { "Authorization": "**hidden**", "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7" }, "method": "GET", "uri": "https://queue.fal.run/fal-ai/kling-video/requests/e6ad29fd-085d-467f-802b-16b28ff95bbd", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }

What is the error message (if any)?

422 - “{"detail":[{"loc":["body"],"msg":"value is not a valid dict","type":"type_error.dict"}]}”

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: = latest beta
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): = n8n cloud
  • Operating system: = windows 11

Hi @AustinVornhagen, welcome to n8n community!

Are you able first to make the POST request to the Fal endpoint you’re using before checking the result?

Usually, after a successful POST request, you’ll receive a response_url that you can use to check the status or download the final file.

Hi AustinVornhagen, it’s exactly as mohamed3nan said, and I’m sharing this because I also often use FAL.AI and REPLICATE,COM, so here’s an example workflow you can use.

Don’t forget to use your API key in the header.

2 Likes

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