Using base64 variable from previous node fails. While using the exact same base64 string as is works

Hey. So I’m using a http request node.
When I try to use data from the previous node as “{{ $json[‘request’][‘image_base64’] }}” it fails and gives me Bad request - please check your parameters warning.
But if I just paste the base64 image directly as a string the request works.
What can cause this?

Information on your n8n setup

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

hello @Roman_K

Can you share the workflow?

Try that one
{{ JSON.stringify($json.request.image_base64) }} but remove the surrounding quotes as they will be added automatically

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