hangups
hangups copied to clipboard
channel.send_maps raising NetworkError 404 Not Found on startup
I've been getting this error intermittently on startup today. Not clear whether it's an API change or glitch.
2016-04-12 20:18:41,941 - hangups.channel - INFO - Requesting new gsessionid and SID...
2016-04-12 20:18:41,942 - hangups.http_utils - DEBUG - Sending request post https://0.client-channel.google.com/client-channel/channel/bind:
{'ofs': 0, 'count': 0}
2016-04-12 20:18:42,308 - hangups.http_utils - DEBUG - Received response 404 Not Found:
b'<HTML>\n<HEAD>\n<TITLE>Not Found</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Not Found</H1>\n<H2>Error 404</H2>\n</BODY>\n</HTML>\n'
2016-04-12 20:18:42,308 - hangups.http_utils - INFO - Request returned unexpected status: 404 Not Found
Traceback (most recent call last):
File "/home/tom/.virtualenvs/hangups/bin/hangups", line 9, in <module>
load_entry_point('hangups==0.3.6', 'console_scripts', 'hangups')()
File "/home/tom/Programming/hangups/hangups/ui/__main__.py", line 976, in main
}, col_scheme, palette_colors, datetimefmt, notifier
File "/home/tom/Programming/hangups/hangups/ui/__main__.py", line 97, in __init__
loop.run_until_complete(self._client.connect())
File "/home/tom/.virtualenvs/hangups/lib/python3.4/site-packages/asyncio-3.4.3-py3.4.egg/asyncio/base_events.py", line 316, in run_until_complete
return future.result()
File "/home/tom/.virtualenvs/hangups/lib/python3.4/site-packages/asyncio-3.4.3-py3.4.egg/asyncio/futures.py", line 275, in result
raise self._exception
File "/home/tom/.virtualenvs/hangups/lib/python3.4/site-packages/asyncio-3.4.3-py3.4.egg/asyncio/tasks.py", line 234, in _step
result = coro.throw(exc)
File "/home/tom/Programming/hangups/hangups/client.py", line 102, in connect
yield from self._listen_future
File "/home/tom/.virtualenvs/hangups/lib/python3.4/site-packages/asyncio-3.4.3-py3.4.egg/asyncio/futures.py", line 386, in __iter__
yield self # This tells Task to wait for completion.
File "/home/tom/.virtualenvs/hangups/lib/python3.4/site-packages/asyncio-3.4.3-py3.4.egg/asyncio/tasks.py", line 287, in _wakeup
value = future.result()
File "/home/tom/.virtualenvs/hangups/lib/python3.4/site-packages/asyncio-3.4.3-py3.4.egg/asyncio/futures.py", line 275, in result
raise self._exception
File "/home/tom/.virtualenvs/hangups/lib/python3.4/site-packages/asyncio-3.4.3-py3.4.egg/asyncio/tasks.py", line 238, in _step
result = next(coro)
File "/home/tom/Programming/hangups/hangups/channel.py", line 203, in listen
yield from self._fetch_channel_sid()
File "/home/tom/Programming/hangups/hangups/channel.py", line 273, in _fetch_channel_sid
res = yield from self.send_maps([])
File "/home/tom/Programming/hangups/hangups/channel.py", line 248, in send_maps
params=params, data=data_dict,
File "/home/tom/Programming/hangups/hangups/http_utils.py", line 58, in fetch
.format(res.status, res.reason)
hangups.exceptions.NetworkError: Request return unexpected status: 404: Not Found
I'm seeing the same one on my app too.