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 calls between docker containers #4121

Closed
godtaehee opened this issue Oct 1, 2021 · 2 comments
Closed

Axios calls between docker containers #4121

godtaehee opened this issue Oct 1, 2021 · 2 comments

Comments

@godtaehee
Copy link

Describe the issue

I have same Issue with this #2817

@chinesedfan

you said "DNS resolving is out of the scope of axios."

Can't axios support DNS resolving in ONLY docker container?

This mean that axios support DNS resolving in general case ??

Thanks

Example Code

Screen Shot 2021-10-02 at 2 01 54 AM

      // work well
      const tokenResult = await axios.post('http://127.0.0.1:3001/v1/token', {
        clientSecret: process.env.CLIENT_SECRET,
      });
      // now work
      const tokenResult = await axios.post('http://localhost:3001/v1/token', {
        clientSecret: process.env.CLIENT_SECRET,
      });

Expected behavior, if applicable

Success Axios Request

Environment

  • Axios Version [0.21.1]
  • Adapter [/HTTP]
  • Browser [Chrome]
  • Browser Version [94]
  • Node.js Version [14.17.0]
  • OS: [OSX 11.5.2]
  • Additional Library Versions [20.10.8]

Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.

@jasonsaayman
Copy link
Member

Hi 👋

Please could you retry with the latest version and open a new issue should this error still be relevant?

Thanks

@scarletquasar
Copy link

image

Issue happening with me @jasonsaayman

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