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

nxdomain error with inet6 address #92

Open
ryan-senn opened this issue Mar 21, 2021 · 0 comments
Open

nxdomain error with inet6 address #92

ryan-senn opened this issue Mar 21, 2021 · 0 comments

Comments

@ryan-senn
Copy link

ryan-senn commented Mar 21, 2021

Hi,

I am trying to connect to an inet6 address but getting the following error: %WebSockex.ConnError{original: :nxdomain}

This is my start_link function:

  def start_link(state) do
    WebSockex.start_link("ws://[::1]:7078", __MODULE__, state)
  end

Interestingly, I was getting the same error with Finch & Mint, but I can send down the following config to make it work:
{Finch, name: MyFinch, pools: %{default: [conn_opts: [transport_opts: [inet6: true]]]}}

Could we add the same option for WebSockex? Basically, I need a way to push options down to line 156 in conn.ex.

In the meanwhile I have forked the project and hardcoded [:inet6, :binary, active: false, packet: 0] for my needs.

Thanks!

I am trying to connect to a nano node: https://docs.nano.org/integration-guides/websockets

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