nc_py_api icon indicating copy to clipboard operation
nc_py_api copied to clipboard

`files.upload_stream` returns 408 Request Timeout error

Open edward-ly opened this issue 1 month ago • 2 comments
trafficstars

Describe the bug

Since version 0.21.0, the files.upload_stream function always raises an exception with an error message like this: [408] Request Timeout <upload_stream(v=True): user=admin, path=Media/example1.gif, cur_size=331398>

If version 0.20.2 or below is installed, the upload works just fine. I suspect, then, it has something to do with the migration to the niquests library, but I'm not sure why.

Steps/Code to Reproduce

You can follow the ExApp tutorial as an example. In requirements.txt, change the first line to nc_py_api[app]==0.21.1 to reproduce the error.

Expected Results

The upload succeeds.

Actual Results

The upload fails, with a server log entry created containing the error message described above.

Setup configuration

nc_py_api >= 0.21.0 nextcloud = 33.0.0

edward-ly avatar Sep 24 '25 22:09 edward-ly