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

axios(config) does not return the promise in Electron app #2312

Closed
Praveer1981 opened this issue Jul 26, 2019 · 4 comments
Closed

axios(config) does not return the promise in Electron app #2312

Praveer1981 opened this issue Jul 26, 2019 · 4 comments

Comments

@Praveer1981
Copy link

Praveer1981 commented Jul 26, 2019

Hi,
Recently, I upgraded the axios version 0.16.0 to 0,19.0 and my code stopped working.
Electron Version : 5.0.7 -- This version of electron uses chromium 73.

I found that axios(config) never returns promise. also I am not able to capture any kind of error.

@Praveer1981 Praveer1981 changed the title axios(onfig) does not return the promise in Electron app axios(config) does not return the promise in Electron app Jul 26, 2019
@G07cha
Copy link

G07cha commented Aug 3, 2019

Could you please provide an example repository where this issue occurs?

@Praveer1981
Copy link
Author

Thanks for your response. When I investigated further I found that axios-retry is in infinite loop. I noticed that there are many people encountered the same issue with axios[0.19.0], For the time being I am using 0.18.1
FYI, here is the exactly code which caused problem
const r = await axios(config);

@G07cha
Copy link

G07cha commented Aug 5, 2019

@Praveer1981 glad that your problem is solved, thanks for sharing the details, I guess softonic/axios-retry#83 is related to your issue.

@Praveer1981
Copy link
Author

Yes, you are right. But we can not upgrade until this issue gets resolved into new release.

@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

2 participants