fix(16): repair broken connections, auth credentials, and dead code across 4 workflows
Phase 16 plans 16-02 through 16-05 introduced three classes of defects:
1. Connection keys used node IDs instead of node names (33 broken links
across n8n-workflow.json, n8n-batch-ui.json, n8n-actions.json)
2. GraphQL HTTP nodes used $env.UNRAID_API_KEY manual headers instead of
Header Auth credential, causing CSRF/UNAUTHENTICATED errors (20 nodes)
3. Duplicate node name "Execute Batch Update" (serial vs parallel paths)
Also fixes Build Cancel Return Submenu using $input.item.json instead of
$('Prepare Cancel From Confirm').item.json after GraphQL query chain.
Removes 12 dead/orphan nodes (6 pre-migration dead code chains,
6 unused utility templates). Node count: 193 -> 181.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+52
-32
@@ -88,10 +88,6 @@
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"value": "={{ $env.UNRAID_API_KEY }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -100,7 +96,9 @@
|
||||
"jsonBody": "={\"query\": \"query { docker { containers { id names state image } } }\"}",
|
||||
"options": {
|
||||
"timeout": 15000
|
||||
}
|
||||
},
|
||||
"authentication": "genericCredentialType",
|
||||
"genericAuthType": "httpHeaderAuth"
|
||||
},
|
||||
"id": "http-get-containers",
|
||||
"name": "Query All Containers",
|
||||
@@ -110,7 +108,13 @@
|
||||
600,
|
||||
400
|
||||
],
|
||||
"onError": "continueRegularOutput"
|
||||
"onError": "continueRegularOutput",
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "unraid-api-key-credential-id",
|
||||
"name": "Unraid API Key"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
@@ -223,10 +227,6 @@
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"value": "={{ $env.UNRAID_API_KEY }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -235,7 +235,9 @@
|
||||
"jsonBody": "={{ JSON.stringify({query: $json.query}) }}",
|
||||
"options": {
|
||||
"timeout": 15000
|
||||
}
|
||||
},
|
||||
"authentication": "genericCredentialType",
|
||||
"genericAuthType": "httpHeaderAuth"
|
||||
},
|
||||
"id": "http-start-container",
|
||||
"name": "Start Container",
|
||||
@@ -245,7 +247,13 @@
|
||||
1160,
|
||||
200
|
||||
],
|
||||
"onError": "continueRegularOutput"
|
||||
"onError": "continueRegularOutput",
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "unraid-api-key-credential-id",
|
||||
"name": "Unraid API Key"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
@@ -257,10 +265,6 @@
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"value": "={{ $env.UNRAID_API_KEY }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -269,7 +273,9 @@
|
||||
"jsonBody": "={{ JSON.stringify({query: $json.query}) }}",
|
||||
"options": {
|
||||
"timeout": 15000
|
||||
}
|
||||
},
|
||||
"authentication": "genericCredentialType",
|
||||
"genericAuthType": "httpHeaderAuth"
|
||||
},
|
||||
"id": "http-stop-container",
|
||||
"name": "Stop Container",
|
||||
@@ -279,7 +285,13 @@
|
||||
1160,
|
||||
300
|
||||
],
|
||||
"onError": "continueRegularOutput"
|
||||
"onError": "continueRegularOutput",
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "unraid-api-key-credential-id",
|
||||
"name": "Unraid API Key"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
@@ -291,10 +303,6 @@
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"value": "={{ $env.UNRAID_API_KEY }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -303,7 +311,9 @@
|
||||
"jsonBody": "={{ JSON.stringify({query: $json.query}) }}",
|
||||
"options": {
|
||||
"timeout": 15000
|
||||
}
|
||||
},
|
||||
"authentication": "genericCredentialType",
|
||||
"genericAuthType": "httpHeaderAuth"
|
||||
},
|
||||
"id": "http-stop-for-restart",
|
||||
"name": "Stop For Restart",
|
||||
@@ -313,7 +323,13 @@
|
||||
1160,
|
||||
400
|
||||
],
|
||||
"onError": "continueRegularOutput"
|
||||
"onError": "continueRegularOutput",
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "unraid-api-key-credential-id",
|
||||
"name": "Unraid API Key"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
@@ -469,10 +485,6 @@
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/json"
|
||||
},
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"value": "={{ $env.UNRAID_API_KEY }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -481,7 +493,9 @@
|
||||
"jsonBody": "={{ JSON.stringify({query: $json.query}) }}",
|
||||
"options": {
|
||||
"timeout": 15000
|
||||
}
|
||||
},
|
||||
"authentication": "genericCredentialType",
|
||||
"genericAuthType": "httpHeaderAuth"
|
||||
},
|
||||
"id": "http-start-after-stop",
|
||||
"name": "Start After Stop",
|
||||
@@ -491,7 +505,13 @@
|
||||
1480,
|
||||
400
|
||||
],
|
||||
"onError": "continueRegularOutput"
|
||||
"onError": "continueRegularOutput",
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "unraid-api-key-credential-id",
|
||||
"name": "Unraid API Key"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
@@ -530,7 +550,7 @@
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Get All Containers",
|
||||
"node": "Query All Containers",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
@@ -732,4 +752,4 @@
|
||||
"executionOrder": "v1",
|
||||
"callerPolicy": "any"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user