Skip to content
This repository has been 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

Open
hansoon1 opened this issue Sep 5, 2023 · 0 comments

Comments

@hansoon1
Copy link

hansoon1 commented Sep 5, 2023

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant