Skip to content

Update OkHttp 4.10 -> 4.12 #103

Open
@vpiskunov

Description

@vpiskunov

Hi! 👋

Discovered an issue where requests in Android fail with a okhttp3.internal.http2.StreamResetException: stream was reset: INTERNAL_ERROR

Now, this is mentioned here as a server side issue - however in my case (and some of other people), the error did not occur on normal browsers nor in Postman etc.

Using a later version of OkHTTP seems to have solved this however!

Smallest diff ever below:

diff --git a/node_modules/@klippa/nativescript-http/platforms/android/include.gradle b/node_modules/@klippa/nativescript-http/platforms/android/include.gradle
index f94d213..9fffe42 100644
--- a/node_modules/@klippa/nativescript-http/platforms/android/include.gradle
+++ b/node_modules/@klippa/nativescript-http/platforms/android/include.gradle
@@ -5,5 +5,5 @@ android {
 }
 
 dependencies {
-    implementation "com.squareup.okhttp3:okhttp:4.10.+"
+    implementation "com.squareup.okhttp3:okhttp:4.12.+"
 }

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions