QR code reading in n8n

Describe the problem/error/question

I am trying to read an image of a qr code, transform it to binary file a form and send it to a HTTP Request

{
“nodes”: [
{
“parameters”: {
“formTitle”: “QR Code”,
“formDescription”: “QR Code”,
“formFields”: {
“values”: [
{
“fieldLabel”: “data”,
“fieldType”: “file”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.formTrigger”,
“typeVersion”: 2.2,
“position”: [
0,
-20
],
“id”: “5fadb85b-1bed-4b44-be0c-a38d815b1dab”,
“name”: “On form submission”,
“webhookId”: “c7cbbc4f-0a7c-47b4-b849-d4e8610f0b6e”
},
{
“parameters”: {
“method”: “POST”,
“url”: “http://api.qrserver.com/v1/read-qr-code/”,
“sendBody”: true,
“contentType”: “multipart-form-data”,
“bodyParameters”: {
“parameters”: [
{
“parameterType”: “formBinaryData”,
“name”: “data”,
“inputDataFieldName”: “file”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
220,
-20
],
“id”: “383f85ec-8551-4aea-b9c0-a06ab4aedec8”,
“name”: “HTTP Request”
}
],
“connections”: {
“On form submission”: {
“main”: [
[
{
“node”: “HTTP Request”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “f4bf662eab8150809da0e50b1116887e20a9aece3b042f73cb2a348a45d5d1a3”
}
}

Information on your n8n setup

  • **n8n version: Latest. self-hosted
  • **Database (default: SQLite): none
  • **n8n EXECUTIONS_PROCESS setting (default: own, main)
  • Operating system: Windows

Hi @Abre_Tu_Futuro Welcome to n8n :n8n: community :tada:

The problem is that you switched the two field names

Anyway, I fixed it for you:

1 Like

Thank you so much! @mohamed3nan

1 Like

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