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

getaddrinfo for res in _socket.getaddrinfo error #175

Open
SalamanderSandwich opened this issue Mar 20, 2019 · 7 comments
Open

getaddrinfo for res in _socket.getaddrinfo error #175

SalamanderSandwich opened this issue Mar 20, 2019 · 7 comments

Comments

@SalamanderSandwich
Copy link

SalamanderSandwich commented Mar 20, 2019

Using dcc_send_and_get.py in examples with python 3.7.2 I get the following error. Works fine in 3.6.0.

INFO irc3d      Started
INFO irc3.receiver sender is offering dcc_send_and_getb.py
ERROR asyncio    Exception in callback DCCManager.created(<DCCGet with ...rc3@127.0.0.1>)(<Task finishe...info failed')>)
handle: <Handle DCCManager.created(<DCCGet with ...rc3@127.0.0.1>)(<Task finishe...info failed')>)>
Traceback (most recent call last):
  File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\site-packages\irc3\dcc\manager.py", line 58, in created
    transport, protocol = future.result()
  File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 910, in create_connection
    type=socket.SOCK_STREAM, proto=proto, flags=flags, loop=self)
  File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 1279, in _ensure_resolved
    proto=proto, flags=flags)
  File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 789, in getaddrinfo
    None, getaddr_func, host, port, family, type, proto, flags)
  File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed
@gawel
Copy link
Owner

gawel commented Mar 21, 2019

Not sure it's really related to irc3. Looks like it raise deep in asyncio.

And btw, are you sure you don't have a firewall or something ?

@gawel
Copy link
Owner

gawel commented Mar 21, 2019

Also tests pass with 3.7 https://travis-ci.org/gawel/irc3/jobs/499987669
And, like other modules, the dcc part is well covered

Weird issue

@gawel
Copy link
Owner

gawel commented Mar 21, 2019

Also tested locally:

$ .tox/py37/bin/python -V                          
Python 3.7.2+
$ .tox/py37/bin/python examples/dcc_send_and_get.py
INFO irc3d      Started
INFO irc3.receiver sender is offering dcc_send_and_get.py
INFO irc3.sender file sent to receiver
INFO irc3.receiver file received from sender

@kitten77
Copy link

kitten77 commented Jan 1, 2020

Could this relate to ipv6?

@gawel
Copy link
Owner

gawel commented Jan 1, 2020

Maybe. But the current traceback to show some 127.0.0.1

@kitten77
Copy link

Hmm pusseling, I know there is an issue if you try using dcc if you have connected with ipv6 to an ircd server.

@gawel
Copy link
Owner

gawel commented Jan 28, 2020

Maybe it's possible to reproduce with irc3d (never tried to run it with ipv6)

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