jmta
July 20, 2023, 10:07am
1
Describe the problem/error/question
server send “0” but n8n show null, node HTTP Request. Why? how to change it?
Example server send:
{
“Status”: “0”,
“Name”: “aBC”
}
Example n8n show :
{
“Status”: null,
“Name”: “aBC”
}
Information on your n8n setup
**n8n version:0.222.2
**Database (default: SQLite):
**n8n EXECUTIONS_PROCESS setting (default: own, main):own
**Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
**Operating system:Linux
Hi @jmta , I am sorry for the trouble. Do you have an example workflow for this by any chance?
The reason I am asking is because I tested the below workflow on n8n@0.222.2:
And I was seeing the actual "0" value instead of null:
jmta:
Describe the problem/error/question
server send “0” but n8n show null, node HTTP Request. Why? how to change it?
Example server send:
{
“Status”: “0”,
“Name”: “aBC”
}
Example n8n show :
{
“Status”: null,
“Name”: “aBC”
}
Information on your n8n setup
**n8n version:0.222.2
**Database (default: SQLite):
**n8n EXECUTIONS_PROCESS setting (default: own, main):own
**Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
**Operating system:Linux
If the server’s response is not being automatically parsed as JSON by the HTTP Request node, you can manually parse it using the JSON Parse node in n8n. Add a JSON Parse node after the HTTP Request node and connect the two. In the JSON Parse node settings, you can specify which fields to parse, and this may help resolve the issue.
jmta
July 20, 2023, 4:56pm
5
Thanks , problem resolved