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

AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher #14802

Closed
nb7123 opened this issue Jul 3, 2017 · 7 comments
Closed

AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher #14802

nb7123 opened this issue Jul 3, 2017 · 7 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@nb7123
Copy link

nb7123 commented Jul 3, 2017

FATAL EXCEPTION: OkHttp Dispatcher
Process: com.firstapp, PID: 16371
java.lang.IllegalStateException: closed
at okhttp3.internal.http.Http1xStream$FixedLengthSource.read(Http1xStream.java:374)
at okio.Buffer.writeAll(Buffer.java:993)
at okio.RealBufferedSource.readByteArray(RealBufferedSource.java:106)
at okhttp3.ResponseBody.bytes(ResponseBody.java:128)
at okhttp3.ResponseBody.string(ResponseBody.java:154)
at com.facebook.react.devsupport.DevServerHelper$8.onResponse(DevServerHelper.java:577)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:848)

When i init a react app throung: react-native init XXX and run it on CHANGHONG T11 device
(Other device run ok)

@nb7123
Copy link
Author

nb7123 commented Jul 5, 2017

device error

@nb7123 nb7123 closed this as completed Jul 5, 2017
@cinder92
Copy link

same issue here, testing in real device... huawei gx8 android 6

@itinance
Copy link
Contributor

Same issue when debugging on real device (Motorola E2).

@jacargentina
Copy link

i'm having this on the emulator; why is this issue closed ?

@kareem-adel
Copy link

I had the same issue with OkHttp, It's related to the connection being kept alive, as a workaround you could close the connection on each call using 'Connection': 'close' header, hopefully it will be fixed soon.

Example:
fetch(backendAPI, { method: 'POST', headers: { 'Connection': 'close' }, body: data })

@Hamzablm
Copy link

Hamzablm commented Jun 2, 2018

same issue

@ayushnawani
Copy link

Still facing this issue in 0.52.2. Please reopen it

@facebook facebook locked as resolved and limited conversation to collaborators Jul 5, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

8 participants