retrofit icon indicating copy to clipboard operation
retrofit copied to clipboard

A type-safe HTTP client for Android and the JVM

Results 165 retrofit issues
Sort by recently updated
recently updated
newest added

I am using coroutines to call the api, If the response code is 500 then the app is crashing even though I'm catching the exception. Below is the implementation: ```...

Needs Info

What kind of issue is this? - [ ] Question. This issue tracker is not the place for questions. If you want to ask how to do something, or to...

![image](https://user-images.githubusercontent.com/27546044/174243008-37a43f9f-235d-44f5-82ff-92a73d6a7020.png) I create the retrofit client using RxJava2CallAdapterFactory (run on Scheduler with 200 threads) ``` final OkHttpClient client = builder .readTimeout(Duration.ofSeconds(30)) .writeTimeout(Duration.ofSeconds(30)) .callTimeout(Duration.ofSeconds(60)) .connectionPool(new ConnectionPool(20, 2L, TimeUnit.MINUTES)) .build(); client.dispatcher().setMaxRequests(1000); client.dispatcher().setMaxRequestsPerHost(1000);...

Vulnerabilities from dependencies: [CVE-2020-8908](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8908) [CVE-2020-15250](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15250) Ref https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit/2.9.0 Plz fix

PR welcome

**The stacktrace error** java.net.SocketException: Broken pipe (Write failed) at java.base/java.net.SocketOutputStream.socketWrite0(Native Method) at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110) at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:150) at okio.OutputStreamSink.write(JvmOkio.kt:53) at okio.AsyncTimeout$sink$1.write(AsyncTimeout.kt:103) at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:235) at okio.RealBufferedSink.write(RealBufferedSink.kt:145) at okhttp3.internal.http1.Http1ExchangeCodec$KnownLengthSink.write(Http1ExchangeCodec.kt:289) at okio.ForwardingSink.write(ForwardingSink.kt:29) at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:218) at...

在我使用协程时,我希望能在接口返回空值时能获取到空值,但是我在实际运行过程中无法获取,同时报错 `Response from XXX was null but response body type was declared as non-null ` 然后再查看源码时发现,[HttpServiceMethod](https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/HttpServiceMethod.java)中,没有调用awaitNullable的逻辑,希望能够加上这个

Run suspending calls within an optional `CoroutineDispatcher`, or `Dispatchers.Default` if none is provided. Our first call to any Retrofit method is blocked by the initialization of our `OkHttpClient` (a prerequisite...

What kind of issue is this? - [ ] Question. This issue tracker is not the place for questions. If you want to ask how to do something, or to...

Enhancement
PR welcome

Given that okio went multiplatform already, and okhttp is slowly [going](https://github.com/square/okhttp/issues/4723) towards that direction, would it be possible for Retrofit to go multiplatform some day? I'm just curious what are...

Icebox

Currently no plans for a Retrofit 3.x. Just tracking changes in a single issue instead of many. * Mock behavior should invoke the implementation method for each `Call.execute()` / `Call.enqueue()`....