Coder Social home page Coder Social logo

Comments (5)

nghia-tran-alobridge avatar nghia-tran-alobridge commented on May 28, 2024 1

Hi @gauthierpetetin.
We,@lydhvmo and I, built the Metamask app and found this message in the Android Studio - Logcat

Screenshot 2024-03-25 at 13 55 40
E  FATAL EXCEPTION: OkHttp Dispatcher
	Process: io.metamask.flask, PID: 23779
	java.lang.StringIndexOutOfBoundsException: String index out of range: -1
		at java.lang.String.substring(String.java:1975)
		at okhttp3.JavaNetCookieJar.decodeHeaderAsJavaNetCookies(JavaNetCookieJar.kt:98)
		at okhttp3.JavaNetCookieJar.loadForRequest(JavaNetCookieJar.kt:59)
		at com.facebook.react.modules.network.ReactCookieJarContainer.loadForRequest(ReactCookieJarContainer.java:44)
		at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:74)
		at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
		at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
		at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
		at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
		at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
		at java.lang.Thread.run(Thread.java:764)

https://github.com/square/okhttp/blob/parent-4.9.2/okhttp-urlconnection/src/main/kotlin/okhttp3/JavaNetCookieJar.kt#L98

from metamask-mobile.

nghia-tran-alobridge avatar nghia-tran-alobridge commented on May 28, 2024

Detail:
OKHTTP_VERSION (react-native v0.71.15) : https://github.com/facebook/react-native/blob/5761ad6437b29dc559fce0914f2a8e71d02d25b3/ReactAndroid/gradle.properties#L17

from metamask-mobile.

gauthierpetetin avatar gauthierpetetin commented on May 28, 2024

Hi @lydhvmo , thanks for reporting this issue. How did you manage to identify square/okhttp#6897 as the root cause?

from metamask-mobile.

NicolasMassart avatar NicolasMassart commented on May 28, 2024

This is very probably due to the favicon code crashing when trying to fetch this page.
aside from the fact that the fetch to this page fails, the favicon code should not crash. It should properly just log and fallback to default icon.
This is a bug for @MetaMask/mobile-platform team and as I worked on this code already, I can be assigned to it.

from metamask-mobile.

NicolasMassart avatar NicolasMassart commented on May 28, 2024

Just comment that this doesn't happen on iOS

from metamask-mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.