Axios 0.19.0 issue
See original GitHub issueDescribe the bug I have problem with axios 0.19.0 , my code works well with axios 0.18.0 , I think axios 19 has issue with baseUrl config
To Reproduce
https://runkit.com/sm2017/5d748f34dda96b001a60f5d0
var axios = require("axios")
const instance = axios.create({
baseUrl:'https://github.com/axios',
});
await instance.get('/axios');
Error: connect ECONNREFUSED 127.0.0.1:80
A stack trace for this error could not be retrieved because stack was already called.
Expected behavior It must load axios github page
Environment:
- Axios Version [e.g. 0.18.0] 0.0.19
- OS: [e.g. iOS 12.1.0, OSX 10.13.4] , windows 10
- Browser [e.g. Chrome, Safari] nodejs
- Browser Version [e.g. 22] v10.15.3
- Additional Library Versions [e.g. React 16.7, React Native 0.58.0] I test in react native 0.60.5 too
Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11
Top Results From Across the Web
axios@0.19.0 - Snyk Vulnerability Database
Affected versions of this package are vulnerable to Server-Side Request Forgery (SSRF). An attacker is able to bypass a proxy by providing a...
Read more >axios : 0.19.0 - org.webjars.npm - Maven Central
axios - WebJar for axios. ... org.webjars.npm:axios 0.19.0. content_copy. <?xml version="1.0" encoding="UTF-8"?> ...
Read more >axios - npm
Promise based HTTP client for the browser and node.js. Latest version: 1.2.1, last published: 23 days ago. Start using axios in your project ......
Read more >Why did npm update axios fail to update but npm uninstall ...
When I run npm update -S axios --loglevel verbose with npm 6 I got the result. npm verb outdated not updating axios because...
Read more >CVE-2020-28168 Detail - NVD
Axios NPM package 0.21.0 contains a Server-Side Request Forgery (SSRF) vulnerability where an attacker is able to bypass a proxy by ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So it is a brwaking change
@dingziqi , @cesar18pena what do you think about the following codes
https://runkit.com/embed/nzbzdjc4auv7 works well but https://runkit.com/embed/lro4kcp7w8ir not