Describe the problem/error/question
I am constructing my workflow, but I need to handle a HTTP error (500) that the application I am getting information throws me when no data if found with some paramters.
In that case I want to perform a action to ad data.
But when its returns 500 the flow stops and never arrives on mu “IF” node.
What I shoud do?
What is the error message (if any)?
Please share your workflow
(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.)
{
"meta": {
"instanceId": "a6136ad078cf3ccddf64559de1267ca9352105b114f9b15de013c554aee32c8d"
},
"nodes": [
{
"parameters": {
"method": "POST",
"url": "https://app.omie.com.br/api/v1/geral/clientes/",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-type",
"value": "application/json"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={ \"call\":\"ListarClientes\", \"app_key\":\"2049872950125\", \"app_secret\":\"f2f59fe41191e0648401de5a7ba4f975\", \"param\":[{ \"apenas_importado_api\":\"N\", \"clientesFiltro\":{ \"cnpj_cpf\":\"{{ $('WooCommerce Trigger').item.json.billing.cpf }}\" } }] } ",
"options": {}
},
"id": "3baa2707-6b08-43a3-a9de-0d252dbf5ab6",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
1000,
120
]
},
{
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{ false }}"
}
]
}
},
"id": "c9ac1bd6-5ee1-44a8-99ff-39fb2e71a30a",
"name": "IF1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1220,
120
]
}
],
"connections": {
"HTTP Request": {
"main": [
[
{
"node": "IF1",
"type": "main",
"index": 0
}
]
]
}
}
}
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: