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 0.21.1 and 0.20.0 not merging url with baseURL #3662

Closed
sebnapi opened this issue Mar 3, 2021 · 1 comment
Closed

Axios 0.21.1 and 0.20.0 not merging url with baseURL #3662

sebnapi opened this issue Mar 3, 2021 · 1 comment

Comments

@sebnapi
Copy link

sebnapi commented Mar 3, 2021

I was just encountering the problem locally, that the new axios version is not merging url with baseURL. I found some issues with version 0.19.0 Issue #2190 where the params are not merged. I used the runnable example to showcase my problem:

https://runkit.com/sebnapi/axios-0-21-1

const axios_newer = require("axios@0.21.1");

const ctr_args = {
    baseURL: "https://httpbin.org",
    url: "/anything",
    params: {
      q: "question",
    }
  };

axios_newer.request().then(function(r) { console.log("axios 0.21", r.data); }).catch(function (e) {console.log(e)})

Expected behavior

Request gets fullfilled with uri appended to baseURL.

Environment

  • Axios Version 0.21.0, 0.20.0

Additional context/Screenshots

Screenshot 2021-03-03 at 14 48 50

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2021

Hello! 👋

This issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue.

Thanks

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

1 participant