Skip to content
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

🐞 Test App in Debug Mode: Network (OkHttp) request seems to fail in strict mode. This happens only in Android O) (26 and 27). Works well in Pre 26 versions. #425

Closed
harvsu opened this issue Aug 30, 2019 · 1 comment

Comments

@harvsu
Copy link
Contributor

harvsu commented Aug 30, 2019

Test App in Debug Mode:
OKhttp request seems to fail in strict mode. This happens only in Android O) (26 and 27). Works well in Pre 26 versions.
Configuration

  • Android OS Version: 9
  • Device model(s): Google Pixel, Nexus e.t.c. Dependent on Android Version than device.
  • App: Events Test App

Steps to Reproduce

  1. Install Test app in android-events repository from Android studio.
  2. Stays on blank screen for a while and eventually the app gets closed.

Expected
Should show Mapbox Telemetry test screen with respondent UI..

Logging
2019-08-30 10:57:36.524 7808-7855/? D/StrictMode: StrictMode policy violation: android.os.strictmode.UntaggedSocketViolation: Untagged socket detected; use TrafficStats.setThreadSocketTag() to track all network usage
at android.os.StrictMode.onUntaggedSocket(StrictMode.java:2023)
at com.android.server.NetworkManagementSocketTagger.tag(NetworkManagementSocketTagger.java:82)
at libcore.io.BlockGuardOs.tagSocket(BlockGuardOs.java:50)
at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:313)
at libcore.io.IoBridge.socket(IoBridge.java:640)
at java.net.PlainSocketImpl.socketCreate(PlainSocketImpl.java:124)
at java.net.AbstractPlainSocketImpl.create(AbstractPlainSocketImpl.java:128)
at java.net.Socket.createImpl(Socket.java:489)
at java.net.Socket.getImpl(Socket.java:552)
at java.net.Socket.setSoTimeout(Socket.java:1180)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:244)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:166)
at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257)
at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:254)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:200)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)

@harvsu harvsu added the bug label Aug 30, 2019
@harvsu harvsu changed the title 🐞 Bug Summary 🐞 Test App in Debug Mode: Network (OkHttp) request seems to fail in strict mode. This happens only in Android O) (26 and 27). Works well in Pre 26 versions. Aug 30, 2019
@harvsu
Copy link
Contributor Author

harvsu commented Dec 16, 2019

#443 fixes this.

@harvsu harvsu closed this as completed Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants