Skip to content

files.upload_stream returns 408 Request Timeout error #381

@edward-ly

Description

@edward-ly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions