-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the Android Studio network inspector crashes the app when performing streaming calls #153
Comments
I believe this is the same underlying issue as https://issuetracker.google.com/issues/235863810. |
Mh, that issue was not updated since over a year... I left a comment there as well as in the linked issue but it seems like that there won't be a solution any time soon. Maybe the underlying root cause if this issue is the same as in #154? |
There is nothing to be done at the moment for this issue in connect-kotlin (and it does appear to be the same root cause as #154). Interceptor APIs should be updated to look at the duplex/isOneShot settings of the request body and not consume the body in those cases. See https://github.com/square/okhttp/blob/e92667cf828e58a389a28bd2298ede9957c31ed4/okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt#L198-L201 for an example of the expected handling. |
Alright, thanks for looking into it. For reference, here is the related ticket on the google issue tracker: https://issuetracker.google.com/issues/295991498 |
When the network inspector in Android Studio is active while I perform a connect streaming call, the app just crashes with the following error:
To reproduce, you can simply run the Eliza example from this repo, open the network inspector (wait until it is fully loaded) and open the
Connect - bidirectional streaming
example. The app crashes immediately with the error above.The text was updated successfully, but these errors were encountered: