Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- D:\Apps\Discord bots\mathbot\mathbot>python bot.py parameters.json
- Total shards: 1
- My shards: 0
- WARNING:discord.client:PyNaCl is not installed, voice will NOT be supported
- Shard 0 client is ready.
- Shard 0 is on 1 servers
- wolfram|alpha : Joel : 2+2
- 2
- 2
- Making request
- Inside the request function!
- 2+2 []
- Traceback (most recent call last):
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 655, in _create_direct_connection
- local_addr=self._local_addr)
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 777, in create_connection
- raise exceptions[0]
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 764, in create_connection
- yield from self.sock_connect(sock, address)
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\asyncio\selector_events.py", line 450, in sock_connect
- return (yield from fut)
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\asyncio\selector_events.py", line 480, in _sock_connect_cb
- raise OSError(err, 'Connect call failed %s' % (address,))
- TimeoutError: [Errno 10060] Connect call failed ('140.177.16.25', 443)
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 375, in connect
- proto = yield from self._create_connection(req)
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 632, in _create_connection
- _, proto = yield from self._create_direct_connection(req)
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 682, in _create_direct_connection
- (req.host, req.port, exc.strerror)) from exc
- aiohttp.client_exceptions.ClientConnectorError: [Errno 10060] Can not connect to www4c.wolframalpha.com:443 [Connect call failed ('140.177.16.25', 443)]
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "D:\Apps\Discord bots\mathbot\mathbot\modules\wolfram.py", line 382, in answer_query
- result = await api.request(query, assumptions, debug = debug)
- File "D:\Apps\Discord bots\mathbot\mathbot\wolfapi.py", line 267, in request
- await result.download(session)
- File "D:\Apps\Discord bots\mathbot\mathbot\wolfapi.py", line 236, in download
- await asyncio.gather(*futures)
- File "D:\Apps\Discord bots\mathbot\mathbot\wolfapi.py", line 183, in download_image
- image = await download_image(session, self.urls[index])
- File "D:\Apps\Discord bots\mathbot\mathbot\wolfapi.py", line 30, in download_image
- async with session.get(url, timeout = 60) as req:
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\client.py", line 626, in __aenter__
- self._resp = yield from self._coro
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\client.py", line 225, in _request
- conn = yield from self._connector.connect(req)
- File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 380, in connect
- .format(key, exc.strerror)) from exc
- aiohttp.client_exceptions.ClientConnectorError: [Errno 10060] Cannot connect to host www4c.wolframalpha.com:443 ssl:True [Can not connect to www4c.wolframalpha.com:443 [Connect call failed ('140.177.16.25', 443)]]
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "D:\Apps\Discord bots\mathbot\mathbot\core\manager.py", line 140, in handle_message
- await self.handle_redirect(message, cmd_string)
- File "D:\Apps\Discord bots\mathbot\mathbot\core\manager.py", line 164, in handle_redirect
- result = await self.exec_command(message, command, arguments)
- File "D:\Apps\Discord bots\mathbot\mathbot\core\manager.py", line 221, in exec_command
- return await command.func(command.module, message, *arguments)
- File "D:\Apps\Discord bots\mathbot\mathbot\modules\wolfram.py", line 227, in command_wolf
- await self.lock_wolf(message.channel, message.author, query)
- File "D:\Apps\Discord bots\mathbot\mathbot\modules\wolfram.py", line 289, in lock_wolf
- await self.answer_query(query, channel, blame, assumptions = assumptions)
- File "D:\Apps\Discord bots\mathbot\mathbot\modules\wolfram.py", line 390, in answer_query
- print('Wolf: HTTP processing error:', e.message)
- AttributeError: 'ClientConnectorError' object has no attribute 'message'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement