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

IO: stream cancelled by client #2367

Closed
stylejinmu opened this issue Aug 20, 2019 · 25 comments
Closed

IO: stream cancelled by client #2367

stylejinmu opened this issue Aug 20, 2019 · 25 comments

Comments

@stylejinmu
Copy link

Describe the issue
I catch interface request by Charles. Occasional phenomenon as follows. I am not sure what the cause of the problem is. need some help. Thanks

WechatIMG456

Environment:

  • Axios Version ["axios": "^0.19.0"]
  • OS: [iOS 12.3.1]
  • Browser [ios Chrome, ios Safari]
  • Browser Version [the latest version]
@DualWield
Copy link

@stylejinmu why closed this issue?

@stylejinmu stylejinmu reopened this Oct 28, 2019
@TheoGit
Copy link

TheoGit commented Nov 1, 2019

@stylejinmu i'm experiencing this also --- any suggestions?

@sunderls
Copy link

sunderls commented Nov 6, 2019

I'm also experiencing this.. on iOS13.2

@TheoGit
Copy link

TheoGit commented Nov 6, 2019

@sunderls we believe for us this was related to updating from a ELB to ALB (Application Load Balancer with NGinx) we went back to an ELB and it resolved our problem - not seeing this error anymore

@joint-song
Copy link

@sunderls we believe for us this was related to updating from a ELB to ALB (Application Load Balancer with NGinx) we went back to an ELB and it resolved our problem - not seeing this error anymore

So it's server side related? It's not an issue caused by client?

@sunderls
Copy link

sunderls commented Nov 12, 2019

to me this is more like a client problem, especially on wkwebview
we are having native client engineers investigating for us

@TheoGit
Copy link

TheoGit commented Nov 12, 2019

@joint-song in our case it was a server problem

@chinesedfan
Copy link
Collaborator

Hi guys, I noticed http2.0 in the screenshot. I don't know axios supports it now. See #1175.

@yuhanle
Copy link

yuhanle commented Feb 14, 2020

to me this is more like a client problem, especially on wkwebview
we are having native client engineers investigating for us

Any good news? @sunderls

@sunderls
Copy link

@yuhanle

we found that on iOS 13.3, the issue could not be reproduced any more
seems like Apple fixed it( at least for my case)

@github-actions
Copy link
Contributor

Hello! 👋

This issue is being automatically marked as stale because it has not been updated in a while. Please confirm that the issue is still present and reproducible. If no updates or new comments are received the issue will be closed in a few days.

Thanks.

@oimmc
Copy link

oimmc commented Dec 28, 2020

we found that on iOS 14.2

@devxoul
Copy link

devxoul commented Mar 21, 2021

Not sure it's related to axios (I'm not using axios) but still getting this issue in native iOS project.

FYI:

iOS 14.4

(lldb) po playerItem.error
Error Domain=AVFoundationErrorDomain Code=-11848 "Cannot Open" UserInfo={NSLocalizedFailureReason=The media cannot be used on this device., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x281932220 {Error Domain=NSOSStatusErrorDomain Code=-12925 "(null)"}}

@adardesign
Copy link

I have the same issue unrelated to axios

@StanislavMayorov
Copy link

StanislavMayorov commented Apr 30, 2021

I have the issue only in the charles proxy. Possible It's just proxy issue. I can reproduce it without axios

@schoettler
Copy link

I'm having this issue with or without Charles proxy. On Android 11.

@adardesign
Copy link

adardesign commented Jun 22, 2021 via email

@aphex3k
Copy link

aphex3k commented Jul 25, 2021

observing the same issue in iOS 12.4 without axios. I doubt this is Axios related

@f-koki
Copy link

f-koki commented Jul 27, 2021

I'm getting the same issue in iOS 14.6 with axios and with or without Charles proxy.

@xizhilang6688
Copy link

I'm getting the same issue in android 10 and with Charles proxy. I doubt this is 302 related.

@itsgeliu
Copy link

Don't know if it helps you guys, in my case the error occurs after sending an axios request and redirecting to another location before the response is returned.

@github-actions
Copy link
Contributor

Hello! 👋

This issue is being automatically marked as stale because it has not been updated in a while. Please confirm that the issue is still present and reproducible. If no updates or new comments are received the issue will be closed in a few days.

Thanks.

@jasonsaayman
Copy link
Member

HTTP/2 will be worked on soon please see #4209

@cornelg7
Copy link

Writing this down for future reference:

In my case, I was using rxjs observables and operations, specifically a forkJoin doing requests A and B.
Request B was failing, so the forkJoin was stopping request A. Charles was showing the "IO: Stream canceled by CLIENT" error on request A.

@beiweiqiang
Copy link

In my case, I tried adding a delay to the request, such as using setTimeout, and I was able to successfully send the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests