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

Error: Network Error in edge but perfect in chrome and the project after built is working in edge #1037

Closed
fionsay opened this issue Aug 9, 2017 · 11 comments

Comments

@fionsay
Copy link

fionsay commented Aug 9, 2017

Hi,
I'm wondering why get the error in edge when using developing mode but perfect in chrome,
and the project after built (npm run build) is working in edge (so weird ).

Here is the code: 

axios.get(api_url, {....})
.then(()=>{
     // code...
}).catch((error)=>{
     // error.response war undefined
     console.log(error, error.response)
})

Here is the error:
Error: Network Error
at createError 
at handleError 
  • axios version: ^0.16.2
  • vue: ^2.3.3
  • vue-router: ^2.3.1
  • vuex: ^2.3.1
@fionsay fionsay closed this as completed Aug 9, 2017
@fionsay fionsay reopened this Aug 9, 2017
@yufengwang
Copy link

let me see see

@fionsay
Copy link
Author

fionsay commented Aug 10, 2017

@yufengwang

stack "Error: Network Error
at createError  (eval code:16:3)
at handleError (eval code:87:7)"

I got the error when I ran the vue project by developing mode.
I thought maybe the edge don't allow localhost loopback for websockets, but it don't work even if enabling loopback.:(

@rubennorte
Copy link
Member

That isn't likely a problem in Axios so can you please send this to Gitter or StackOverflow and provide enough information to understand what problem you are having? Thanks.

@Sigura
Copy link

Sigura commented Dec 4, 2017

That isn't likely a problem in Axios

no, it's. because requests through other libs like fetch work perfectly.

see the same problem in Edge (40) only, FF, Chrome work perfect.

other environment staff:

  1. request with CORS support, localhost, ports differed
  2. response body json, all headers correct

@iaminvictus1993
Copy link

iaminvictus1993 commented Mar 23, 2018

mark, i meet the same problem, prod mode is good, but dev mode error

@darthmooguy
Copy link

darthmooguy commented Apr 3, 2018

I've got the same problem too! Using create-react-app with the webpack-dev server, the requests always fails with a "Network Error" in Edge, but not in other browsers. When I run the compiled "dist" version, eveything is fine.

@Orange-way
Copy link

I've got the same problem too! How do you solve it finally?

@ivanmem
Copy link

ivanmem commented Sep 24, 2019

Такая же проблема, в разработке, а в проде норм.

@nadilas
Copy link

nadilas commented Nov 11, 2019

Same here

@Cnordbo
Copy link

Cnordbo commented Dec 18, 2019

Im getting the same problem on Edge when i am behind a proxy.

Response snapshot:

image

2 headers included (Authorization and accept)

Chrome works fine.

Turning off the proxy and vpn connection makes the error disappear for me.

@marco9446
Copy link

I have the same error described before. I'm not using any vpn or proxy. Do someone has any tips or idea on what should i do to fix this problem with Edge ?

@axios axios locked and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests