Describe the problem/error/question
I am trying to make http request GET method from https://api.maya.net/connectivity/v1/esim/plan/ . But every time i execute the http node i get this error ( Problem in node ‘Get Customer‘
The connection to the server was closed unexpectedly, perhaps it is offline. You can retry the request immediately or wait and retry later. ) ( {
“errorMessage”: “The connection to the server was closed unexpectedly, perhaps it is offline. You can retry the request immediately or wait and retry later. [item 0]”,
“errorDetails”: {
“rawErrorMessage”: [
“read ECONNRESET”,
“read ECONNRESET”
],
“httpCode”: “ECONNRESET”
},
“n8nDetails”: {
“nodeName”: “Get Customer”,
“nodeType”: “n8n-nodes-base.httpRequest”,
“nodeVersion”: 4.2,
“itemIndex”: 0,
“time”: “22/07/2025, 19:00:33”,
“n8nVersion”: “1.104.0 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: The connection to the server was closed unexpectedly, perhaps it is offline. You can retry the request immediately or wait and retry later.”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:780:15)“,
" at processTicksAndRejections (node:internal/process/task_queues:105:5)”,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1211:9)“,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1581:27”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2157:11"
]
}
}
it was working fine not long time ago but suddenly its stopped working and i dont know why !
What is the error message (if any)?
Please share your workflow
{
“nodes”: [
{
“parameters”: {
“rule”: {
“interval”: [
{
“field”: “hours”
}
]
}
},
“type”: “n8n-nodes-base.scheduleTrigger”,
“typeVersion”: 1.2,
“position”: [
-880,
96
],
“id”: “16775b34-398f-4cd0-a4d5-96b9446cc1ac”,
“name”: “Schedule Trigger”
},
{
“parameters”: {
“resource”: “page”,
“operation”: “getAll”,
“returnAll”: true,
“options”: {
“status”: “publish”
}
},
“type”: “n8n-nodes-base.wordpress”,
“typeVersion”: 1,
“position”: [
-656,
96
],
“id”: “ea5a1de9-3e94-4a8c-a6fa-d93216d692f5”,
“name”: “Wordpress”,
“retryOnFail”: true
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: false,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “da9915ce-98e7-4fe7-b463-e0dda8de0b31”,
“leftValue”: “={{ $(‘Loop All Plans ID’).item.json.slug }}”,
“rightValue”: “=top_up”,
“operator”: {
“type”: “string”,
“operation”: “notStartsWith”
}
}
],
“combinator”: “and”
},
“options”: {
“ignoreCase”: true
}
},
“type”: “n8n-nodes-base.if”,
“typeVersion”: 2.2,
“position”: [
-224,
96
],
“id”: “4eb778cb-25dc-407f-a152-c679b10e5f0d”,
“name”: “If”
},
{
“parameters”: {
“url”: “=https://api.maya.net/connectivity/v1/esim/{{ $(‘Split Data Datasky’).item.json.Split_ICCID }}/plan/{{ $json[‘Split_Plan’] }}”,
“sendHeaders”: true,
“headerParameters”: {
“parameters”: [
{
“name”: “Authorization”,
“value”: “=[REDACTED]”
},
{
“name”: “Accept”,
“value”: “application/json”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
224,
0
],
“id”: “9cee27ef-d429-4cf1-9bab-6e694bcf324b”,
“name”: “Get Customer”,
“retryOnFail”: true,
“maxTries”: 5,
“waitBetweenTries”: 2000
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “05078ac7-7eee-4625-ada4-d6bc54f9ddf0”,
“name”: “Split_Customer”,
“value”: “={{ $(‘Wordpress’).item.json.title.rendered.split(‘-ID_’)[0] }}”,
“type”: “string”
},
{
“id”: “1762e630-6105-44ae-a251-34bacba8d4e7”,
“name”: “Split_ICCID”,
“value”: “={{ $(‘Wordpress’).item.json.title.rendered.split(‘-ICCID_’)[1] }}”,
“type”: “string”
},
{
“id”: “ae355bfc-1c91-4422-8f53-e704518879c6”,
“name”: “Split_ID”,
“value”: “={{ $(‘Wordpress’).item.json.id }}”,
“type”: “string”
},
{
“id”: “4c2cc5b2-9772-4014-af2e-0f4f3327f225”,
“name”: “Split_Plan”,
“value”: “={{ $json.slug }}”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
0,
0
],
“id”: “f66bbee2-dea7-4754-a500-fe11615f1b3d”,
“name”: “Split Data Datasky”
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “f31520ef-c7a2-43e5-8508-fbe0ae40b2d2”,
“name”: “Total”,
“value”: “={{ $json.plan.data_bytes_remaining }}”,
“type”: “string”
},
{
“id”: “9d411831-f6b5-49e4-b239-f586e84c5928”,
“name”: “Network”,
“value”: “={{ $json.plan.network_status }}”,
“type”: “string”
},
{
“id”: “43c378e9-5861-4679-85c8-ee610b4ce2ee”,
“name”: “Start”,
“value”: “={{ $json.plan.start_time }}”,
“type”: “string”
},
{
“id”: “5915bfde-6b95-4159-bbd7-9472e23fc0f7”,
“name”: “End”,
“value”: “={{ $json.plan.end_time }}”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
448,
0
],
“id”: “e6011860-eaf5-42fc-b189-18727eeb0315”,
“name”: “Get All Data Remain”
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “f31520ef-c7a2-43e5-8508-fbe0ae40b2d2”,
“name”: “Total”,
“value”: “={{ $json.plan.data_bytes_remaining }}”,
“type”: “string”
},
{
“id”: “86854868-2272-4d17-b509-154461b45cb5”,
“name”: “Network”,
“value”: “={{ $json.plan.network_status }}”,
“type”: “string”
},
{
“id”: “bd9ec18b-1ff9-4ce8-940f-e83f6a4ef627”,
“name”: “Start”,
“value”: “={{ $json.plan.start_time }}”,
“type”: “string”
},
{
“id”: “ad4181bd-c910-4f38-8536-f6ae4e6b1532”,
“name”: “End”,
“value”: “={{ $json.plan.end_time }}”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
448,
192
],
“id”: “f2e57de4-baeb-4346-a9da-ba7726f3b3c5”,
“name”: “Get All Data Remain Top Up”
},
{
“parameters”: {
“fieldToSplitOut”: “slug”,
“options”: {}
},
“type”: “n8n-nodes-base.splitOut”,
“typeVersion”: 1,
“position”: [
-432,
96
],
“id”: “3f30aae3-51fd-4d4a-9b16-bece390a9836”,
“name”: “Loop All Plans ID”
},
{
“parameters”: {
“fieldToSplitOut”: “Total”,
“include”: “allOtherFields”,
“options”: {}
},
“type”: “n8n-nodes-base.splitOut”,
“typeVersion”: 1,
“position”: [
656,
0
],
“id”: “f25e697f-36e7-43eb-8c58-a50a0c32d8dc”,
“name”: “Loop All Data Remain”
},
{
“parameters”: {
“fieldToSplitOut”: “Total”,
“include”: “allOtherFields”,
“options”: {}
},
“type”: “n8n-nodes-base.splitOut”,
“typeVersion”: 1,
“position”: [
656,
192
],
“id”: “77e70317-4b99-407b-bdb5-7ec093ee077b”,
“name”: “Loop All Data Remain Top Up”
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “f090995f-ee2a-49d5-812d-20cda6d33b82”,
“name”: “Convert Remain”,
“value”: “={{ ( ($(‘Loop All Data Remain’).item.json.Total / (100510021000)) ).toFixed(2).replace(‘.’, ‘,’) }}”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
880,
0
],
“id”: “50e0bf89-a76e-4c3d-9356-f1a4d991595e”,
“name”: “Convert Remain”
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “f090995f-ee2a-49d5-812d-20cda6d33b82”,
“name”: “Convert Remain”,
“value”: “={{ ( ($(‘Loop All Data Remain Top Up’).item.json.Total / (100510021000)) ).toFixed(2).replace(‘.’, ‘,’) }}”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
880,
192
],
“id”: “dcfd4e19-f07c-41d6-a9c2-b08344557d3f”,
“name”: “Convert Remain Top Up”
},
{
“parameters”: {
“resource”: “page”,
“operation”: “update”,
“pageId”: “={{ $(‘Wordpress’).item.json.id }}”,
“updateFields”: {
“content”: “={{\n(() => {\n let content = String($(‘Wordpress’).item.json.content.rendered || ‘’);\n\n content = content.replace(\n /(>Time \(الوقت\): <span style="font-weight: bold;">)([^<]+)(<\/span><br \/>)/g,\n ‘$1’ + $now.format("HH:mm") + ‘$3’\n );\n\n content = content.replace(\n /(value=")([^"])(")/g,\n ‘$1’ + $(‘Loop All Data Remain’).item.json.Total + ‘$3’\n );\n\n content = content.replace(\n /(<p style="color: #009688;">)([^<]+?)( \/ [^<]+<\/p>)/g,\n ‘$1’ + $(‘Convert Remain’).item.json[‘Convert Remain’] + ‘$3’\n );\n\n content = content.replace(\n /(Date \(التاريخ\): <span style="font-weight: bold;">)([^<]+)(<\/span><\/p>)/g,\n ‘$1’ + $now.format(‘yyyy-MM-dd’) + ‘$3’\n );\n\n content = content.replace(\n /(<p style="color: #333; margin: 5px 0;">Network Status \(حالة الشبكة\):<\/strong> <span style="color: #009688;">)([^<]+)(<\/span><\/p>)/g,\n ‘$1’ + $(‘Loop All Data Remain’).item.json.Network + ‘$3’\n );\n\n content = content.replace(\n /(<p style="color: #333; margin: 5px 0;">Start Time \(وقت البداية\):<\/strong> <span style="color: #009688;">)([^<]+)(<\/span><\/p>)/g,\n ‘$1’ + $(‘Loop All Data Remain’).item.json.Start + ‘$3’\n );\n\n content = content.replace(\n /(<p style="color: #333; margin: 5px 0;">End Time \(وقت الانتهاء\):<\/strong> <span style="color: #009688;">)([^<]+)(<\/span><\/p>)/g,\n ‘$1’ + $(‘Loop All Data Remain’).item.json.End + ‘$3’\n );\n\n\n return content;\n})()\n}}"
}
},
“type”: “n8n-nodes-base.wordpress”,
“typeVersion”: 1,
“position”: [
1104,
0
],
“id”: “4078b6a0-4ed5-4da7-9189-842a392f6b08”,
“name”: “Update Datasky Pages”,
“retryOnFail”: true
},
{
“parameters”: {
“resource”: “page”,
“operation”: “update”,
“pageId”: “={{ $(‘Wordpress’).item.json.id }}”,
“updateFields”: {
“content”: "={{\n(() => {\n let content = String($(‘Wordpress’).item.json.content.rendered || ‘’);\n\n content = content.replace(\n /(>Time \(الوقت\): <span style="font-weight: bold;">)([^<]+)(<\/span><br \/>)/g,\n ‘$1’ + $now.format("HH:mm") + ‘$3’\n );\n\n content = content.replace(\n /(value=")([^"])(")/g,\n ‘$1’ + $(‘Loop All Data Remain Top Up’).item.json.Total + ‘$3’\n );\n\n content = content.replace(\n /(<p style="color: #009688;">)([^<]+?)( \/ [^<]+<\/p>)/g,\n ‘$1’ + $(‘Convert Remain Top Up’).item.json[‘Convert Remain’] + ‘$3’\n );\n\n content = content.replace(\n /(Date \(التاريخ\): <span style="font-weight: bold;">)([^<]+)(<\/span><\/p>)/g,\n ‘$1’ + $now.format(‘yyyy-MM-dd’) + ‘$3’\n );\n\n content = content.replace(\n /(<p style="color: #333; margin: 5px 0;">Network Status \(حالة الشبكة\):<\/strong> <span style="color: #009688;">)([^<]+)(<\/span><\/p>)/g,\n ‘$1’ + $(‘Loop All Data Remain Top Up’).item.json.Network + ‘$3’\n );\n\n content = content.replace(\n /(<p style="color: #333; margin: 5px 0;">Start Time \(وقت البداية\):<\/strong> <span style="color: #009688;">)([^<]+)(<\/span><\/p>)/g,\n ‘$1’ + $(‘Loop All Data Remain Top Up’).item.json.Start + ‘$3’\n );\n\n content = content.replace(\n /(<p style="color: #333; margin: 5px 0;">End Time \(وقت الانتهاء\):<\/strong> <span style="color: #009688;">)([^<]+)(<\/span><\/p>)/g,\n ‘$1’ + $(‘Loop All Data Remain Top Up’).item.json.End + ‘$3’\n );\n\n\n return content;\n})()\n}}”
}
},
“type”: “n8n-nodes-base.wordpress”,
“typeVersion”: 1,
“position”: [
1104,
192
],
“id”: “e83895c4-4aee-4cf2-8034-ae3d11536d9b”,
“name”: “Update Top Up Pages”,
“retryOnFail”: true
},
{
“parameters”: {
“method”: “=GET”,
“url”: “=https://api.maya.net/connectivity/v1/esim/{{ $(‘Split Data Top Up’).item.json.ICCID }}/plan/{{ $json[‘Plan ID’] }}”,
“sendHeaders”: true,
“headerParameters”: {
“parameters”: [
{
“name”: “Authorization”,
“value”: “=[REDACTED]”
},
{
“name”: “Accept”,
“value”: “application/json”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
224,
192
],
“id”: “f98d9aee-1ca3-41b9-a26f-0c19cea38eee”,
“name”: “Get Plan ID Top Up”,
“retryOnFail”: true,
“maxTries”: 5,
“waitBetweenTries”: 2000
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “311ba266-5ce5-4283-b370-d92bb889ba46”,
“name”: “ICCID”,
“value”: “={{ $(‘Wordpress’).item.json.title.rendered.split(‘-ICCID_’)[1] }}”,
“type”: “string”
},
{
“id”: “be8a70f7-b900-4006-8bfd-8befde1967c8”,
“name”: “Split_ID”,
“value”: “={{ $(‘Wordpress’).item.json.id }}”,
“type”: “string”
},
{
“id”: “8a3d7b8b-feb0-479f-b50c-d807c83419e7”,
“name”: “Plan ID”,
“value”: “={{ $(‘If’).item.json.slug.replace(/^top_up/, ‘’) }}”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
0,
192
],
“id”: “c9acdec9-b737-48f8-9ac3-b3c0dd224e43”,
“name”: “Split Data Top Up”
}
],
“connections”: {
“Schedule Trigger”: {
“main”: [
[
{
“node”: “Wordpress”,
“type”: “main”,
“index”: 0
}
]
]
},
“Wordpress”: {
“main”: [
[
{
“node”: “Loop All Plans ID”,
“type”: “main”,
“index”: 0
}
]
]
},
“If”: {
“main”: [
[
{
“node”: “Split Data Datasky”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Split Data Top Up”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get Customer”: {
“main”: [
[
{
“node”: “Get All Data Remain”,
“type”: “main”,
“index”: 0
}
]
]
},
“Split Data Datasky”: {
“main”: [
[
{
“node”: “Get Customer”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get All Data Remain”: {
“main”: [
[
{
“node”: “Loop All Data Remain”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get All Data Remain Top Up”: {
“main”: [
[
{
“node”: “Loop All Data Remain Top Up”,
“type”: “main”,
“index”: 0
}
]
]
},
“Loop All Plans ID”: {
“main”: [
[
{
“node”: “If”,
“type”: “main”,
“index”: 0
}
]
]
},
“Loop All Data Remain”: {
“main”: [
[
{
“node”: “Convert Remain”,
“type”: “main”,
“index”: 0
}
]
]
},
“Loop All Data Remain Top Up”: {
“main”: [
[
{
“node”: “Convert Remain Top Up”,
“type”: “main”,
“index”: 0
}
]
]
},
“Convert Remain”: {
“main”: [
[
{
“node”: “Update Datasky Pages”,
“type”: “main”,
“index”: 0
}
]
]
},
“Convert Remain Top Up”: {
“main”: [
[
{
“node”: “Update Top Up Pages”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get Plan ID Top Up”: {
“main”: [
[
{
“node”: “Get All Data Remain Top Up”,
“type”: “main”,
“index”: 0
}
]
]
},
“Split Data Top Up”: {
“main”: [
[
{
“node”: “Get Plan ID Top Up”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “7822273d6ca60412d66daba69b24d6b4741a1a81ab3ae67b5f459cc9cdd48669”
}
}
## Information on your n8n setup
- **n8n version:**
n8n version : 1.103.2
- **Database (default: SQLite):**
database: sqlite
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**
executionMode: regular
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
n8n cloud
platform: docker (cloud)
- **Operating system:** )
userAgent: mozilla/5.0 (windows nt 10.0; win64; x64; rv:140.0) gecko/20100101 firefox/140.0