CURL PUT fails in HTTP Request node but succeeds in Terminal

Hello!

I’m using a pre-signed URL to upload an MP3 file to a vendor’s AWS S3 bucket.

A CURL PUT request from the terminal works flawlessly.

However, the same request mimicked in an n8n HTTP Request node fails every time — with a SignatureDoesNotMatch error.

To boot, the same PUT request sent from my Insomnia client also fails with the same error.

NOTE: Mac Terminal (zsh) needed the signed URL to be single-quoted. HTTP Request fails when I try that in n8n, indicating “Invalid URL.”

Any thoughts on what’s going on here?

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:

Hey @power,

Is that part of the authentication required by the S3 bucket?
If yes, then maybe you could solve the problem by creating the correct Credential for AWS S3.

If not, can you please share your workflow JSON code?
Just copy and paste your nodes into a code block:

like this

Thanks, @solomon.

The URL itself is where the authentication lives. It’s an expiring link. There’s no other authentication or credentialing involved.

The CURL call passes only the signed URL and the file path. No errors there.

But doing (essentially) the same thing via HTTP Request fails.

I’ll share my workflow as soon as I’m back at my keyboard.

1 Like

Alright. If you can send me an example token in the URL, I’ll try to validate here on my end.

It doesn’t have to be a current working token. It can be an expired one.

Sure thing. Here’s an expired signed URL:

https://shotstack-ingest-api-stage-sources.s3.ap-southeast-2.amazonaws.com/aa1c9s2f1s/zzz01jmw-x5yns-ceq50-dg8nh-bhgqk2/source?AWSAccessKeyId=ASIAWJV5NVDMHZJM52MC&Expires=1740435483&Signature=67wGKV0kvz3vH6MsV0W5EtLQB6A%3D&X-Amzn-Trace-Id=Root%3D1-67bce20a-5af87f0d33ad371c7df5e4ec%3BParent%3D78db07141f04f174%3BSampled%3D0%3BLineage%3D2%3A7ce0a753%3A0&x-amz-acl=public-read&x-amz-security-token=IQoJb3JpZ2luX2VjEP3%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDmFwLXNvdXRoZWFzdC0yIkYwRAIgDeNHgvt377LaUwRuFaWyN74lN7Hwuf%2F8taZakeblAP0CIBn7p3FvIiw0SE6m5wRe4E7UQrYp7q2UY7Dsfn8hiyZ4KpYDCDYQAxoMNDMzMTE1MjExOTkyIgyhQ5sjKzaDaRLnLrsq8wIgh6fythQeR4BnILeuxc%2F%2Boq0wKThZ2PpM7ND9vDMeW8733XqZTBuYEtlDiaM8GO%2BO1sRGa29cQXnlKLbZg98YcPjToikvpO5fDkYl9ZMGUWNY9tsfidSvOWngqXsB686IwV3ujQJlhsjHgMNNLZPWSRXmXAjvd25fBoyfzkZaBZHsOImx8E%2FaV%2FoTG87ZBaUA2Qlu6jIT%2BPREEhZdfeAdg0zjt9VlcNldW93Ht1yoyB91cI3I5GBrqMRCBRYzlESDD%2FXsckyJIkB3gELM79q5K6TZccJBbX0slOdVx9gaT2n6XqO4oXI2f6XXXQM5eITdLkN8P6xz5QvYBSLYZbkcnWuY5Irb1LjHxIElmMlGQ2OeYuQ3brQ6%2FUHFRgQH2RrxYPvgn8WWy8ZBGU233yeTbE2osTngMxH3b6g55W7OFMKFBJzuVZi7pyBJeMPoQYyLYaXhq44b4QuhyhY2aonidQ44aZkTExqJMNuCBNwsuCpI%2FDCIxPO9BjqeAfvVSrjvAVq95F%2B9iHCld7inb%2BVxZgrLPyugRWGiI7yJyPZUWi39lIDnJhmwrXduQkwdiwJkYNkoj%2F1ESsAkEtj%2BejZCXgf8ke%2BjAiuye1fKP3UJj9de2GrhJr5y2zJ3Mc7pRtnYov2iEKHwMomjpxc2OFrrPJNqjVv3ruGzUJIlU1LzfYRV68qH7O2XwzrrdC15GkNpB%2FdAM%2FYnW%2FDE

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