You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response message is now non-null. This is the "Not Found" in the status line "HTTP 404 Not Found". If you are building responses programmatically (with new Response.Builder()) you must now always supply a message. An empty string "" is permitted. This value was never null on responses returned by OkHttp itself, and it was an old mistake to permit application code to omit a message.
Sample stack trace:
java.lang.IllegalStateException: message == null
at okhttp3.Response$Builder.build(Response.java:431)
at okreplay.OkHttpResponseAdapter.adapt(OkHttpResponseAdapter.java:20)
at okreplay.OkReplayInterceptor.intercept(OkReplayInterceptor.java:40)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain
...
The text was updated successfully, but these errors were encountered:
OkHttpResponseAdapter
needs to set the message field to ensure that it is compatible with OkHttp 3.8.0 and later.From OkHttp's Changelog:
Sample stack trace:
The text was updated successfully, but these errors were encountered: