Posted June 18, 2020
high rated
At first, I looked for errors in log-file: ProgramData\GOG.com\Galaxy\logs\plugin-steam-...log
Yes it's here:
ERROR - Failed to establish authenticated WebSocket connection gaierror(11004, 'getaddrinfo failed')
...
message.obfuscated_private_ip.v4 = struct.unpack(">L", socket.inet_aton(socket.gethostbyname(socket.gethostname())))[0] ^ 0xF00DBAAD
socket.gaierror: [Errno 11004] getaddrinfo failed
Do fast test in python
import socket
print(socket.gethostbyname)
Result: aRuzanow-ПК
Do socket.gethostbyname(socket.gethostname())
Error:
socket.gaierror: [Errno 11004] getaddrinfo failed
Let's try to replace in protobuf_client.py socket.gethostname() on 'localhost'. Ok, it's fixed problem for me.
Maybe it'll be usefull for somebody else.
PS. In standard smtplib.py, there is better code:
fqdn = socket.getfqdn()
if '.' in fqdn:
self.local_hostname = fqdn
else:
# We can't find an fqdn hostname, so use a domain literal
addr = '127.0.0.1'
try:
addr = socket.gethostbyname(socket.gethostname())
except socket.gaierror:
pass
self.local_hostname = '[%s]' % addr
Yes it's here:
ERROR - Failed to establish authenticated WebSocket connection gaierror(11004, 'getaddrinfo failed')
...
message.obfuscated_private_ip.v4 = struct.unpack(">L", socket.inet_aton(socket.gethostbyname(socket.gethostname())))[0] ^ 0xF00DBAAD
socket.gaierror: [Errno 11004] getaddrinfo failed
Do fast test in python
import socket
print(socket.gethostbyname)
Result: aRuzanow-ПК
Do socket.gethostbyname(socket.gethostname())
Error:
socket.gaierror: [Errno 11004] getaddrinfo failed
Let's try to replace in protobuf_client.py socket.gethostname() on 'localhost'. Ok, it's fixed problem for me.
Maybe it'll be usefull for somebody else.
PS. In standard smtplib.py, there is better code:
fqdn = socket.getfqdn()
if '.' in fqdn:
self.local_hostname = fqdn
else:
# We can't find an fqdn hostname, so use a domain literal
addr = '127.0.0.1'
try:
addr = socket.gethostbyname(socket.gethostname())
except socket.gaierror:
pass
self.local_hostname = '[%s]' % addr
No posts in this topic were marked as the solution yet. If you can help, add your reply