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

[1.0.0] Invalid query param transformation #5024

Closed
loganmzz opened this issue Oct 5, 2022 · 2 comments
Closed

[1.0.0] Invalid query param transformation #5024

loganmzz opened this issue Oct 5, 2022 · 2 comments

Comments

@loganmzz
Copy link

loganmzz commented Oct 5, 2022

Describe the bug

If I put query parameter into provided URL, the question marked is removed and other query param elements are left.

To Reproduce

https://runkit.com/embed/pgz3rgsk4f01

const axios = require('axios');

(async () => {
    try {
        const {data} = await axios.get('https://echo.zuplo.io/get?page=2');
        console.log(JSON.stringify(data, undefined, 4));
    } catch (err) {
        console.error(JSON.stringify(err, undefined, 4));
    }
})();
{
    "url": "https://echo.zuplo.io/getpage=2",
    "method": "GET",
    "query": {},
    "headers": {
        "accept": "application/json, text/plain, */*",
        "accept-encoding": "gzip",
        "connection": "Keep-Alive",
        "host": "echo.zuplo.io",
        "true-client-ip": "54.218.94.245",
        "user-agent": "axios/1.0.0",
        "x-forwarded-proto": "https",
        "x-real-ip": "54.218.94.245"
    }
}

Expected behavior

Right HTTP request !?

Environment

  • Axios Version [1.0.0]
  • Node.js Version [16.17.1]
  • OS: [Ubuntu 2022.10]

Additional context/Screenshots

N/A

@DigitalBrainJS
Copy link
Collaborator

Known issue. This has been recently fixed and will be released soon. Please see #4999, #5020.

@loganmzz
Copy link
Author

loganmzz commented Oct 6, 2022

Sorry for inconvenience, isssue search found nothing for query or param :(

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

3 participants