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 0.19.0 issue #2397
Comments
Reply please |
It's a case problem.Use |
I am having same issue:
on 0.18.0 it goes inside success code on 0.19.0 it goes inside error code |
@sm2017 it is just a typo error, should be: const instance = axios.create({
baseURL:'https://github.com/axios',
}); instead of const instance = axios.create({
baseUrl:'https://github.com/axios',
}); |
@dingziqi , @cesar18pena what do you think about the following codes var axios = require("axios@0.18.0")
const instance = axios.create({
baseURL:'https://postman-echo.com/',
url:'/get',
params:{
"foo1": "bar1",
"foo2": "bar2"
}
});
const {data} = await instance.request();
console.log(data) var axios = require("axios")
const instance = axios.create({
baseURL:'https://postman-echo.com/',
url:'/get',
params:{
"foo1": "bar1",
"foo2": "bar2"
}
});
const {data} = await instance.request();
console.log(data) https://runkit.com/embed/nzbzdjc4auv7 works well but https://runkit.com/embed/lro4kcp7w8ir not |
Any idea? |
The rule of |
So it is a brwaking change |
I think I figured out why, there was a change with defaults inside 0.18 version Line 35 in face016
0.19 version Line 37 in bbfd5b1
good catch! |
Tested with 0.19.1, and it works. |
Describe 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
Expected behavior
It must load axios github page
Environment:
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: