klippa-app/nativescript-http

Update OkHttp 4.10 -> 4.12

Opened this issue ยท 0 comments

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.