Hey, There!
Please, Can anybody help me throughout the problem I’m facing here.?
getting this error while doing http request.
I have this raw json.
{
“template”: “BCrsX8VxaFbst0f23ftv”,
“variables”: {
“voiceModel”: “elevenlabs”,
“voiceID”: “CZdRaSQ51p0onta4eec8”,
“imageModel”: “flux-pro”,
“audioURL”: “{{ $json.Randomized_audio }}”,
“introVideo”: “{{ $json.intro_video }}”,
“introText”: “{{ $(‘Get row(s) in sheet’).item.json.idea }}”,
“clips”: [
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[0].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[0][‘image prompt’] }}”
},
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[1].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[1][‘image prompt’] }}”
},
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[2].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[2][‘image prompt’] }}”
},
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[3].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[3][‘image prompt’] }}”
},
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[4].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[4][‘image prompt’] }}”
},
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[5].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[5][‘image prompt’] }}”
},
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[6].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[6][‘image prompt’] }}”
},
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[7].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[7][‘image prompt’] }}”
},
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[8].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[8][‘image prompt’] }}”
},
{
“voiceText”: “{{ $(‘Prompts’).first().json.output[9].voiceText }}”,
“image_prompt”: “{{ $(‘Prompts’).first().json.output[9][‘image prompt’] }}”
}
]
}
}
and getting the error like
{
“errorMessage”: “JSON parameter needs to be valid JSON”,
“errorDetails”: {},
“n8nDetails”: {
“nodeName”: “Create Video”,
“nodeType”: “n8n-nodes-base.httpRequest”,
“nodeVersion”: 4.2,
“itemIndex”: 0,
“time”: “14/8/2025, 6:23:29 am”,
“n8nVersion”: “1.105.4 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeOperationError: JSON parameter needs to be valid JSON”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:366:15)“,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1212:9)”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1582:27",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2158:11"
]
}
}