Docling on n8n (reposted)

Describe the problem/error/question

Reposting because the original got flagged for including the Docling server internal URL

:person_facepalming:

I’m trying to connect n8n to a Dockling server using an ‘HTTP Request’ node configured as,
Method: POST
URL: {docling_url}/v1/convert/file
Authentication: None
Send Body: enabled
Body Content Type: Form-Data
Body Type: n8n Binary file
Body Name: files
Body Input Data Field Name: data
The input node is ‘Read Files from Disk’, which passes a pdf file in binary form.

What is the error message (if any)?

The ‘HTTP Request’ node stays in ‘Executing’ state for exactly 5min and then gives error,
‘Problem in node ‘HTTP Request1’
The connection was aborted, perhaps the server is offline’
Below are the Docling server responses when running the workflow,
DEBUG:python_multipart.multipart:Calling on_part_begin with no data
DEBUG:python_multipart.multipart:Calling on_header_field with data[54:73]
DEBUG:python_multipart.multipart:Calling on_header_value with data[75:108]
DEBUG:python_multipart.multipart:Calling on_header_end with no data
DEBUG:python_multipart.multipart:Calling on_headers_finished with no data
DEBUG:python_multipart.multipart:Calling on_part_data with data[112:115]
DEBUG:python_multipart.multipart:Calling on_part_end with no data
DEBUG:python_multipart.multipart:Calling on_part_begin with no data
DEBUG:python_multipart.multipart:Calling on_header_field with data[171:190]
DEBUG:python_multipart.multipart:Calling on_header_value with data[192:222]
DEBUG:python_multipart.multipart:Calling on_header_end with no data
DEBUG:python_multipart.multipart:Calling on_headers_finished with no data
DEBUG:python_multipart.multipart:Calling on_part_data with data[226:227]
DEBUG:python_multipart.multipart:Calling on_part_end with no data
DEBUG:python_multipart.multipart:Calling on_part_begin with no data
DEBUG:python_multipart.multipart:Calling on_header_field with data[283:302]
DEBUG:python_multipart.multipart:Calling on_header_value with data[304:387]
DEBUG:python_multipart.multipart:Calling on_header_end with no data
DEBUG:python_multipart.multipart:Calling on_header_field with data[389:401]
DEBUG:python_multipart.multipart:Calling on_header_value with data[403:427]
DEBUG:python_multipart.multipart:Calling on_header_end with no data
DEBUG:python_multipart.multipart:Calling on_headers_finished with no data
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:98297]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:65536]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:95223]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:255964]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:107502]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:255964]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:235493]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:255964]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:255964]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:255964]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:255964]
DEBUG:python_multipart.multipart:Calling on_part_data with data[0:24853]

Share the output returned by the last node

{
“errorMessage”: “The connection was aborted, perhaps the server is offline”,
“errorDetails”: {
“rawErrorMessage”: [
“timeout of 300000ms exceeded”,
“timeout of 300000ms exceeded”
],
“httpCode”: “ECONNABORTED”
},
“n8nDetails”: {
“nodeName”: “HTTP Request1”,
“nodeType”: “n8n-nodes-base.httpRequest”,
“nodeVersion”: 4.4,
“itemIndex”: 0,
“time”: “5/28/2026, 11:36:06 AM”,
“n8nVersion”: “2.14.2 (Self Hosted)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: The connection was aborted, perhaps the server is offline”,
" at ExecuteContext.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:816:16)“,
" at processTicksAndRejections (node:internal/process/task_queues:104:5)”,
" at WorkflowExecute.executeNode (/usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1045:8)“,
" at WorkflowExecute.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1224:11)”,
" at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1670:27",
" at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2315:11"
]
}
}

Information on your n8n setup

  • n8n version: 2.14.2
  • Database (default: SQLite): N/A
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Cachy OS

@lost_ghost the Docling server is actually receiving + processing ur PDF (visible in those multipart debug logs), the “connection aborted” error after 5 min is misleading — its n8n’s HTTP Request default timeout firing, not a real network failure. bump the timeout in the HTTP Request node Options tab → “Increase Request Timeout” or set Timeout to something like 600000ms (10 min) based on ur PDF size. roughly how big is the file? smaller PDFs finish in seconds, large/complex ones can take several minutes through Docling.

To address a couple of suggestions posted on the old post,
“I’ve tried it with both a 10MB pdf document and a 10kB (text only) docx.
I get the same response from both.”

Using curl i get the correct out put,
curl -X POST “{docling_url}/v1/convert/file”
-F “files=@/path/to/yyy table_of_content.docx”
–max-time 60

Here is the above command’s output on a small docx file with only text,
`{“document”:{“filename”:“yyy table_of_content.docx”,“md_content”:“yyy system - Table of Contents\…”,“json_content”:null,“html_content”:null,“text_content”:null,“doctags_content”:null},“status”:“success”,“errors”:,“processing_time”:0.01784076999683748,“timings”:{}}`

حسنًا، المهلة الزمنية كانت في الاتجاه الخاطئ — curl مع 60 ثانية يعمل بشكل جيد على نفس الملفات. المؤشر الحقيقي موجود في سجل التصحيح الأصلي لديك: on_part_data with data[112:115] يُظهر أن Docling استقبل فقط 3 بايتات في جزء الملف — n8n يرفق multipart فارغًا بشكل أساسي، وليس محتوى الملف الفعلي لديك. هذا هو السبب في أن curl يعمل (يرسل البيانات الثنائية بشكل صحيح) لكن n8n يتعطل في انتظار نص لا ينتهي تحميله أبدًا.

فحص سريع: ما هو “اسم الخاصية” في عقدة Read Files from Disk الخاصة بك؟ تُعيّن افتراضيًا إلى “data” لكن إذا غيرته (أو كان شيئًا آخر) وكان “Body Input Data Field Name” الخاص بـ HTTP Request لديك لا يزال “data”، فإن n8n لن يتمكن من العثور على البيانات الثنائية ويرسل جزءًا فارغًا. يجب أن يتطابقا بالضبط.

مرحبا @lost_ghost

المشكلة ليست أن اتصالك معطوب أو أن إعداداتك خاطئة. في الواقع، السجلات تظهر أن الملف يتم إرساله إلى خادم Docling بنجاح. المشكلة الحقيقية ببساطة هي أن Docling يستغرق وقتاً طويلاً لمعالجة ملف PDF الخاص بك، و n8n مبرمج للاستسلام إذا لم يحصل على إجابة في غضون 5 دقائق. لأن الخادم لا يزال يعمل عندما يصل هذا الحد الزمني، n8n “يتخلى عن” الطلب ويبلغ عن خطأ.

لإصلاح هذا، تحتاج إلى إخبار n8n ليكون أكثر صبراً. افتح عقدة “HTTP Request” الخاصة بك، انتقل إلى قسم “Options”، وأضف إعدادات “Timeout”. أزيد هذه القيمة من 300,000 ميلي ثانية الحالية (5 دقائق) إلى قيمة أعلى بكثير، مثل 600,000 (10 دقائق) أو حتى 1,200,000 (20 دقيقة). هذا يعطي خادم Docling الوقت الإضافي الذي يحتاجه لإكمال العمل الثقيل المتمثل في تحويل مستندك.

إذا زدت من مهلة انتظار الاستجابة وفشلت المحاولة، فقد تواجه مشكلة “وسيط”. إذا كنت تستخدم أداة مثل Nginx لإدارة حركة مرور الويب الخاصة بك، فقد تكون لتلك الأداة حدها الزمني الخاص بمدة 5 دقائق التي تحتاج إلى زيادة. بالإضافة إلى ذلك، تأكد من أن الكمبيوتر الذي يقوم بتشغيل خادم Docling لديه قوة معالجة وذاكرة كافية، حيث أن الكمبيوتر البطيء أو المثقل بالعمل سيجعل مهام التحويل هذه تستغرق وقتاً أطول.

كما ذكر @achamm، المهلة الزمنية ليست المشكلة. لقد أرسلت ملفات صغيرة جداً لم تتم معالجتها أيضاً. 60 ثانية يجب أن تكون أكثر من كافية لمعالجة تلك الملفات الصغيرة قبل حدوث انقطاع اتصال من n8n أو NginX.

اسم الحقل هو data وأن البيانات الثنائية التي أوفرها هي data.

لست متأكداً ما هي المشكلة، لكنني الآن أستخدم عقدة code مع curl وهي تعمل بشكل جيد.
هذه هي النقطة من عقدة ‘Http request’ في الواقع. يجب أن تعمل.

نعم، هذا خلل حقيقي في n8n — عقدة HTTP Request الخاصة بمسلسل البيانات الثنائية متعددة الأجزاء تفقد محتوى الملف في ظروف معينة حتى عندما تتطابق البيانات الثنائية واسم الحقل بالضبط. طريقتك مع Code+curl هي الخيار الصحيح أثناء انتظار إصلاح صحيح. إليك ملف JSON النظيف للبحث في المستقبل لمن يواجهون نفس المشكلة:

يتطلب NODE_FUNCTION_ALLOW_BUILTIN=child_process,fs في متغيرات بيئة n8n إذا كنت تستخدم الاستضافة الذاتية. من المفيد تقديم تقرير هذا على GitHub - n8n-io/n8n: Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations. · GitHub مع سجل التصحيح on_part_data with data[112:115] الأصلي — إنها نسخة نظيفة من مشكلة الجزء متعدد الأجزاء الفارغ ورأيت خيطين أو ثلاثة خيوط أخرى يواجهونها بدون حل. لا تتردد في وضع علامة على أي منشور ساعدك أكثر كحل حتى يجده الشخص التالي بشكل أسرع.

هذا منطقي. شكراً لك!

أهلاً وسهلاً! أنا سعيد دائماً بالمساعدة!