square / okhttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM.
https://square.github.io/okhttp/
Apache License 2.0
45.87k stars 9.16k forks source link

Expected ':status' header not present #3882

Closed xiaozuozi closed 6 years ago

xiaozuozi commented 6 years ago

when i use get request,it cause this exception,the version is 3.3.1

yschimke commented 6 years ago

This seems like a bad server, could you provide either a test case, or reproduction steps against a public server?

xiaozuozi commented 6 years ago

the url is https://fir.im/apps/latest/59f6f318959d695680000a5c?api_token=519257864d9d2fc7f4f38132c3827416,the method i use is OkHttpUtils.get().url(url).build().connTimeOut(6000).execute(callback);

yschimke commented 6 years ago

I get a clean 401. So can't do much with this at the moment.

HTTP/1.1 401 { "errors": { "exception": [ "Authentication failed" ] }, "code": 100020 }

xiaozuozi commented 6 years ago

i update the the okhttp and then solve the question

xiaozuozi commented 6 years ago

when i upload 5 pictures one time,i hava got --> END POST (2024087-byte body) <-- HTTP FAILED: java.net.SocketTimeoutException how can i solve this question?

yschimke commented 6 years ago

Can you ask these types of typical use and error handling questions on stackoverflow. This is for reporting confirmed reproducible bugs.