dmrz / baymax Goto Github PK
View Code? Open in Web Editor NEWSimple telegram bot on top of Python asyncio
License: MIT License
Simple telegram bot on top of Python asyncio
License: MIT License
how to fix it:
`2018-03-02 18:05:12,521 DEBUG:baymax.bot: Getting updates...
2018-03-02 18:05:13,517 ERROR:baymax.bot: Polling cancelled
Traceback (most recent call last):
File "/home/liuhang/.virtualenvs/baymax-master/lib/python3.6/site-packages/aiohttp/connector.py", line 797, in _wrap_create_connection
return (yield from self._loop.create_connection(*args, **kwargs))
File "uvloop/loop.pyx", line 1769, in create_connection
ConnectionResetError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/liuhang/Desktop/baymax-master/baymax/bot.py", line 234, in start_polling
async for update in self.update_generator():
File "/home/liuhang/Desktop/baymax-master/baymax/bot.py", line 246, in update_generator
updates = await self.get_updates()
File "/home/liuhang/Desktop/baymax-master/baymax/bot.py", line 255, in get_updates
response = await self.api.get_updates(self.timeout, self.update_id + 1)
File "/home/liuhang/Desktop/baymax-master/baymax/api.py", line 43, in get_updates
return await self.request(f'{self.base_url}/getUpdates', params=params)
File "/home/liuhang/Desktop/baymax-master/baymax/api.py", line 33, in request
url, data=payload, params=params, headers=headers) as resp:
File "/home/liuhang/.virtualenvs/baymax-master/lib/python3.6/site-packages/aiohttp/client.py", line 690, in aenter
self._resp = yield from self._coro
File "/home/liuhang/.virtualenvs/baymax-master/lib/python3.6/site-packages/aiohttp/client.py", line 267, in _request
conn = yield from self._connector.connect(req)
File "/home/liuhang/.virtualenvs/baymax-master/lib/python3.6/site-packages/aiohttp/connector.py", line 402, in connect
proto = yield from self._create_connection(req)
File "/home/liuhang/.virtualenvs/baymax-master/lib/python3.6/site-packages/aiohttp/connector.py", line 749, in _create_connection
_, proto = yield from self._create_direct_connection(req)
File "/home/liuhang/.virtualenvs/baymax-master/lib/python3.6/site-packages/aiohttp/connector.py", line 860, in _create_direct_connection
raise last_exc
File "/home/liuhang/.virtualenvs/baymax-master/lib/python3.6/site-packages/aiohttp/connector.py", line 832, in _create_direct_connection
req=req, client_error=client_error)
File "/home/liuhang/.virtualenvs/baymax-master/lib/python3.6/site-packages/aiohttp/connector.py", line 804, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.telegram.org:443 ssl:True [Connection reset by peer]`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.