Describe el problema/error/pregunta
¿Cuál es el mensaje de error (si hay alguno)? Bad request - please check your parameters
Por favor, comparte tu flujo de trabajo
{
“nodes”: [
{
“parameters”: {
“method”: “POST”,
“url”: “http://host.docker.internal:8082/api/assistant/intent ”,
“sendHeaders”: true,
“headerParameters”: {
“parameters”: [
{
“name”: “Content-Type”,
“value”: “application/json”
},
{
“name”: “Accept”,
“value”: “application/json”
}
]
},
“sendBody”: true,
“contentType”: “raw”,
“body”: “={{ $json.cleanOutput }}”,
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.4,
“position”: [
240,
-112
],
“id”: “bc555ae5-8565-4c9b-b871-4d3f4a20899b”,
“name”: “HTTP Request”
}
],
“connections”: {},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “02f1001f8f2d972f69be23b2f2dcfdcc65885dd6f6ff6d04c911329ee6f7f3dd”
}
}
Información sobre tu configuración de n8n
versión de n8n: latest / local
Base de datos (por defecto: SQLite): N/A
Configuración n8n EXECUTIONS_PROCESS (por defecto: own, main): default
Ejecutando n8n mediante (Docker, npm, n8n cloud, desktop app): Docker
Sistema operativo: Windows 10
Hola @GeoForeman
Cambia tu campo Body a esto:
{
"intent": "{{ $json.cleanOutput }}"
}
(Reemplaza "intent" con el nombre de clave actual requerido por tu API).
¡Hola @GeoForeman ! ¡Bienvenido!
El tipo de contenido raw envía el valor literal de la expresión como cuerpo. Si cleanOutput no es un JSON válido, host.docker.internal:8082 recibe texto sin formato bajo un encabezado Content-Type: application/json, y su analizador lo rechaza antes de que se ejecute tu lógica de endpoint.
Envuelve el valor con JSON.stringify en lugar de escribir comillas alrededor de la expresión; las comillas manuales fallan en el momento en que cleanOutput contiene una comilla o salto de línea:
{{ JSON.stringify({ yourKey: $json.cleanOutput }) }}
Como se trata de tu propio servicio local, su cuerpo de respuesta real o registro del servidor mostrarán el motivo de validación real en lugar del mensaje genérico de n8n.
opened 10:21PM - 11 Sep 25 UTC
closed 04:30AM - 13 Mar 26 UTC
in linear
Stale
## Describe the problem/error/question
HTTP request node configured as RAW and … application/json. The expression preview keeps showing a string instead of a JSON and an output error appears all the times.
## What is the error message (if any)?
Bad request - please check your parameters
Error on line 1: invalid JSON, near column 1: unexpected character: '"'; expected '{'
Error code
400
Full message
400 - "{\n \"error\": {\n \"code\": 400,\n \"message\": \"Error on line 1: invalid JSON, near column 1: unexpected character: '\\\"'; expected '{'\",\n \"status\": \"INVALID_ARGUMENT\"\n }\n}\n"
Request
{ "body": "{\"batch\":{\"display_name\":\"n8n-videos-batch\",\"input_config\":{\"file_name\":\"files/l2mafixz7ocf\"}}}", "headers": { "x-goog-api-key": "XXXXXXXXXXXXXX", "content-type": "application/json", "accept": "application/json,text/*;q=0.99" }, "method": "POST", "uri": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:batchGenerateContent", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "json": false, "useStream": true }
## Please share your workflow/screenshots/recording
This is the RAW expression:
{{
JSON.stringify({
batch: {
display_name: "n8n-videos-batch",
input_config: {
file_name: $json.batchInputFile // e.g. "files/zmqnybl6eb2d"
}
}
})
}}
```
(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.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.
```
## Share the output returned by the last node
## Debug info
### core
- n8nVersion: 1.110.1
- platform: docker (cloud)
- nodeJsVersion: 22.19.0
- database: sqlite
- executionMode: regular
- concurrency: 5
- license: community
### storage
- success: all
- error: all
- progress: false
- manual: true
- binaryMode: filesystem
### pruning
- enabled: true
- maxAge: 168 hours
- maxCount: 2500 executions
### client
- userAgent: mozilla/5.0 (windows nt 10.0; win64; x64; rv:142.0) gecko/20100101 firefox/142.0
- isTouchDevice: false
Generated at: 2025-09-11T21:56:31.840Z}