-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
Connection closed while receiving data #22951
Comments
Same issue here. |
Please add the output of |
|
Same issue here. |
I'm experiencing the same issue while using a Django environment as a backend. It is important to note that my Django server was located in the same subnet as the emulated device (development environment, in the same private network). This issue does NOT occur while getting images from the "Internet". I finally found a workaround by hosting the images at a different location outside of my network (remote website storage). Maybe it is also important to note that (in my case), this issue had nothing to do with the image sizes (I got the issue on images from 4 Ko to +10 Mo, but no issues at all when fetching Internet images). Hope this can be fixed very soon, it will help greatly working in a development environment :) |
My workaround was to use an old PC as server on my private network. |
I got the same issue with a real iPone 6s. |
我是安卓的模拟器 也出现同样的问题 |
I fixed this by remove proxy config for my Android emulator in my case. |
How did you do, exactly? The link you've provided helps to set up a proxy on the machine, not to remove proxy config for the Android emulator, AFAIK. The issue is still occuring Thanks |
Thanks @zhangzhenxi ! I guess it did the trick, the issue does not occur every time now. I assume this is a workaround though ; do we have an ETA on a possible fix release? Thanks again for your help 👍 |
I'm also experiencing this issue. Turning off the proxy only makes the issue become random (does not fail every time). My REST API is on another server on the local network. This issue makes it impossible to do any development work. |
@dayofbrian it's been several months now that I've not faced this issue anymore. Perhaps it can help you; what version of Android Studio do you use? Same question for the AVD? Turning off the proxy definitely did the trick. Hope this can help. |
I've basically started using my Samsung device to do all development. Android Studio 3.5.3 looks like 3.6.2 is available now |
Also getting this issue with both images & other large downloads. This is making it very difficult to do any local development. Disabling proxy hasn't fixed the issue for me. |
I faced the problem with load multi-image files, but sometimes, maybe problem at my server |
any update on this ? facing same issue on any emulator, but real phone works fine |
Like above issues, I'm facing this issue with load multiple images too. |
@Mythar |
I had been encountering the same issues. My use case was that i was running a flask application on the localhost and accessing the REST endpoints through the URL. The workaround I got was exposing my localhost through a tunneling service. You can consider using ngrok. Of course, your data will be routed through a third-party service but yeah |
Without additional information, we are unfortunately not sure how to resolve this issue. Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of |
This issue still occur |
I am also facing the same issue while downloading a large file, |
For Flask backend: Also don't forget to remove proxy config for the Android emulator This is what solved the problem in my case. |
It works ! Thanks a lot! |
same issue for me |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Im getting this a lot when calling my backend Django REST api (localhost).
What i have found on the web is that, this is a problem when using an emulator, and everything works just fine on a "real" device.
Its like the http call (POST, PUT etc.) does not give the host enough time to respond.
I monitor the server responses and the server dose respond correctly but connection gets cut off.
Its very annoying when working in a development environment, i was wondering if any has a solution to this?
The text was updated successfully, but these errors were encountered: