Hello,
I don’t know if this is the right place to post, but I found some odd behaviour.
I have a workflow that calls a paged API endpoint.
The response is a token for the next page + message payload.
The setup and error is the same as in the following example:
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"conditions": {
"string": [],
"number": [
{
"value1": "={{$json[\"nextPageToken\"]}}",
"operation": "smallerEqual",
"value2": 5
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
650,
0
]
},
{
"parameters": {
"values": {
"string": [
{
"name": "nextPageToken",
"value": "1"
}
]
},
"options": {}
},
"name": "Initialize",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
460,
290
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "nextPageToken",
"value": "={{parseInt($json[\"nextPageToken\"])+ 1}}"
}
]
},
"options": {}
},
"name": "Call API",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
660,
290
]
},
{
"parameters": {},
"name": "Do Stuff With Response",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
860,
290
]
},
{
"parameters": {},
"name": "Finished",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
850,
0
]
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Initialize",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "Call API",
"type": "main",
"index": 0
}
],
[
{
"node": "Finished",
"type": "main",
"index": 0
}
]
]
},
"Initialize": {
"main": [
[
{
"node": "Call API",
"type": "main",
"index": 0
}
]
]
},
"Call API": {
"main": [
[
{
"node": "Do Stuff With Response",
"type": "main",
"index": 0
},
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
}
}
}
The normal execution works fine, but I can’t step through it one node at a time.
I get the following Error:
If I want step through to change something in the workflow I always have to remove the connection from “If” back to “Call Api”.
Thanks for building such an awesome tool.
Feel free to ask any clarifying question or suggest a better way of handling my use-case.