Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Question] Can I avoid the "code=503" response when uploading a file to Dave #60

Description

@hansoon1

Hello,

I'm trying to make an app on Android of a client for WebDAV.
I faced the problem when uploading a file larger than about 1.5MB to Dave.

Response message is below:
Response{protocol=http/1.1, code=503, message=Service Unavailable,

Using OkHttp3 Lib,
RequestBody requestBody = RequestBody.create(MediaType.parse(mediaType), file);
Request request = new Request.Builder().url(urlToUpload).put(requestBody).build;
Response response = client.newCall(request).execute();

This works finewhen uploading a file smaller than 1.5MB, but I faved 503 response for files larger than 1.5MB.

How can I avoid this situation ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions