Hi everyone
Quick question can someone check what’s wrong with my workflow? It just doesn’t continue. I followed a step by step guide went through the steps again, but I couldn’t find the error. Here is the code and a screenshot
{
“name”: “My workflow 3”,
“nodes”: [
{
“parameters”: {},
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
0,
0
],
“id”: “69354803-d8a3-4680-9bc1-80a4b46eefd7”,
“name”: “When clicking ‘Test workflow’”
},
{
“parameters”: {
“url”: “=Google Maps}”,
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
220,
0
],
“id”: “178614dd-98ae-44f4-bdb3-cfa5a92aaf26”,
“name”: “HTTP Request”,
“onError”: “continueRegularOutput”
},
{
“parameters”: {
“jsCode”: “const data = $input.first().json.data\n\nconst regex = /https?:\/\/[^\/]+/g\n\nurls = data.match(regex)\n\nreturn urls.map(url => ({json: {url}}))”
},
“type”: “n8n-nodes-base.code”,
“typeVersion”: 2,
“position”: [
440,
0
],
“id”: “e3ea9cf2-4b39-48ee-a20b-438aba210360”,
“name”: “Code”
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “57ffc485-869b-4e09-ae4f-58b2d27a0c62”,
“leftValue”: “={{ $json.url }}”,
“rightValue”: “(google|gstatic|ggpht|schema.org|example.com)”,
“operator”: {
“type”: “string”,
“operation”: “notRegex”
}
}
],
“combinator”: “and”
},
“options”: {}
},
“type”: “n8n-nodes-base.filter”,
“typeVersion”: 2.2,
“position”: [
640,
0
],
“id”: “5830aa6a-9d9a-42db-9611-333bad586a4d”,
“name”: “Filter”
},
{
“parameters”: {
“options”: {}
},
“type”: “n8n-nodes-base.splitInBatches”,
“typeVersion”: 3,
“position”: [
1020,
120
],
“id”: “820c8c92-ebb2-4bc8-909f-4026e62b7ce0”,
“name”: “Loop Over Items”,
“onError”: “continueErrorOutput”
},
{
“parameters”: {
“url”: “={{ $json.url }}”,
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
1220,
180
],
“id”: “93a6374e-0b86-49b9-9a35-f30d59804b58”,
“name”: “HTTP Request1”,
“onError”: “continueRegularOutput”
},
{
“parameters”: {
“options”: {}
},
“type”: “n8n-nodes-base.splitInBatches”,
“typeVersion”: 3,
“position”: [
1260,
-80
],
“id”: “c80b341a-0d36-4185-8091-ba0e696d51f0”,
“name”: “Loop Over Items1”,
“onError”: “continueErrorOutput”
},
{
“parameters”: {
“mode”: “runOnceForEachItem”,
“jsCode”: “const data = $json.data\n\nconst emailRegex = /[a-zA-Z0-9._%±]+@[a-zA-Z0-9.-]+\.(?!png|jpg|gif|jpeg)[a-zA-Z]{2,}/g\n\n\nemails = data.match(emailRegex)\n\nreturn {json: {emails: emails}}”
},
“type”: “n8n-nodes-base.code”,
“typeVersion”: 2,
“position”: [
1500,
-20
],
“id”: “d4a4da67-af6d-4a96-a623-05229cbbcc25”,
“name”: “Code1”
},
{
“parameters”: {
“fieldsToAggregate”: {
“fieldToAggregate”: [
{}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.aggregate”,
“typeVersion”: 1,
“position”: [
1500,
-220
],
“id”: “527b9fb9-16eb-4342-ae73-c6278871ba12”,
“name”: “Aggregate”
},
{
“parameters”: {
“options”: {}
},
“type”: “n8n-nodes-base.removeDuplicates”,
“typeVersion”: 2,
“position”: [
860,
0
],
“id”: “b4552676-ebaf-4203-8cb9-dd140876ea5c”,
“name”: “Remove Duplicates”
}
],
“pinData”: {
“When clicking ‘Test workflow’”: [
{
“json”: {
“query”: “/resturants+köln/”
}
}
]
},
“connections”: {
“When clicking ‘Test workflow’”: {
“main”: [
[
{
“node”: “HTTP Request”,
“type”: “main”,
“index”: 0
}
]
]
},
“HTTP Request”: {
“main”: [
[
{
“node”: “Code”,
“type”: “main”,
“index”: 0
}
]
]
},
“Code”: {
“main”: [
[
{
“node”: “Filter”,
“type”: “main”,
“index”: 0
}
]
]
},
“Filter”: {
“main”: [
[
{
“node”: “Remove Duplicates”,
“type”: “main”,
“index”: 0
}
]
]
},
“Loop Over Items”: {
“main”: [
[
{
“node”: “Loop Over Items1”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “HTTP Request1”,
“type”: “main”,
“index”: 0
}
]
]
},
“HTTP Request1”: {
“main”: [
[
{
“node”: “Loop Over Items”,
“type”: “main”,
“index”: 0
}
]
]
},
“Loop Over Items1”: {
“main”: [
[
{
“node”: “Aggregate”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Code1”,
“type”: “main”,
“index”: 0
}
]
]
},
“Code1”: {
“main”: [
[
{
“node”: “Loop Over Items1”,
“type”: “main”,
“index”: 0
}
]
]
},
“Remove Duplicates”: {
“main”: [
[
{
“node”: “Loop Over Items”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“active”: false,
“settings”: {
“executionOrder”: “v1”
},
“versionId”: “fe9aa36f-ad42-458c-97d8-22f88dabe1a7”,
“meta”: {
“instanceId”: “45568561f2a2daf5563323031b45fddb0d7855d0c695f3d268dc2ef7b4099a5d”
},
“id”: “7msTyCdeBcNc1F0r”,
“tags”:
}