@Benjamin_Behrens , adding content length didn’t really helped. I dont think file size is the issue here, the file is only 200KB.
I created a Flask app with the same API endpoint to test it out these are the logs produced:
INFO:main:Incoming request: POST http://192.168.0.4:8000/unlock-pdfINFO:main:Start unlocking PDFERROR:main:Exception on /unlock-pdf [POST]Traceback (most recent call last):File “/app/venv/lib/python3.11/site-packages/werkzeug/serving.py”, line 110, in read_chunk_len_len = int(line.strip(), 16)^^^^^^^^^^^^^^^^^^^^^ValueError: invalid literal for int() with base 16: ‘’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):File “/app/venv/lib/python3.11/site-packages/flask/app.py”, line 1511, in wsgi_appresponse = self.full_dispatch_request()^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/flask/app.py”, line 919, in full_dispatch_requestrv = self.handle_user_exception(e)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/flask/app.py”, line 917, in full_dispatch_requestrv = self.dispatch_request()^^^^^^^^^^^^^^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/flask/app.py”, line 902, in dispatch_requestreturn self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/app/./main.py”, line 47, in unlock_pdfupload = request.files.get(“file”)^^^^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/werkzeug/utils.py”, line 100, in getvalue = self.fget(obj) # type: ignore^^^^^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/werkzeug/wrappers/request.py”, line 497, in filesself._load_form_data()File “/app/venv/lib/python3.11/site-packages/flask/wrappers.py”, line 198, in _load_form_datasuper()._load_form_data()File “/app/venv/lib/python3.11/site-packages/werkzeug/wrappers/request.py”, line 271, in _load_form_datadata = parser.parse(^^^^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/werkzeug/formparser.py”, line 242, in parsereturn parse_func(stream, mimetype, content_length, options)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/werkzeug/formparser.py”, line 267, in _parse_multipartform, files = parser.parse(stream, boundary, content_length)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/werkzeug/formparser.py”, line 368, in parsefor data in _chunk_iter(stream.read, self.buffer_size):File “/app/venv/lib/python3.11/site-packages/werkzeug/formparser.py”, line 423, in _chunk_iterdata = read(size)^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/werkzeug/serving.py”, line 123, in readintoself._len = self.read_chunk_len()^^^^^^^^^^^^^^^^^^^^^File “/app/venv/lib/python3.11/site-packages/werkzeug/serving.py”, line 112, in read_chunk_lenraise OSError(“Invalid chunk header”) from eOSError: Invalid chunk headerINFO:main:Response status: 500
Does this proves the API did not received an EOF from n8n?