Coder Social home page Coder Social logo

IPv6 address parsed as IPv4 about azure HOT 6 OPEN

barnabas-kurdi avatar barnabas-kurdi commented on August 28, 2024
IPv6 address parsed as IPv4

from azure.

Comments (6)

Fred-sun avatar Fred-sun commented on August 28, 2024

@barnabas-kurdi Judging from your error, it is caused by the mismatch between the IP address and port you specified( httpx.InvalidURL: Invalid port: 'BBBB::'). Could you please check it again? Thank you!

from azure.

Fred-sun avatar Fred-sun commented on August 28, 2024

@barnabas-kurdi And I think this problem should not be problem of azure - azcollection this repo, and should be the problem of ansible this platform, it should be in "https://github.com/ansible/ansible/issues"

from azure.

barnabas-kurdi avatar barnabas-kurdi commented on August 28, 2024

@Fred-sun Thank you for your response! The thing is, I specified no address when invoking the module whatsoever, so I am not sure where and why the address is pulled from (I'm thinking the modules are using it in the API requests sent to Azure?).

The ansible.builtin.uri module (and other builtin modules) works perfectly when using the EE I built, this is why I assumed that this is not a general ansible platform problem, but an issue with the azcollection in particular. I get the same error when using any module from the collection, no matter what module arguments I try.

from azure.

Fred-sun avatar Fred-sun commented on August 28, 2024

@barnabas-kurdi I will recheck it. thank you!

from azure.

barnabas-kurdi avatar barnabas-kurdi commented on August 28, 2024

@Fred-sun I have resolved the issue: turns out the problem was not with a dual stack address, but an ipv6 address set in the no_proxy environment variable.

no_proxy=...,AAAA:BBBB::/48,...

Once I unset the variable for the module invocation, it was working fine.

I have found this same issue in the httpx repo, however it seems to have been solved in a pull request in 2023 (encode/httpx#2659) and the azure collection is using the newest version of httpx, so I am not sure what gives. It might be worth some time investment to figure out what might be causing the issue, since its source is not immediately apparent.

from azure.

Fred-sun avatar Fred-sun commented on August 28, 2024

@barnabas-kurdi Thank you for your feedback, we will investigate and find out the cause and fix it. Thank you!

from azure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.