Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--: spam
- Content-Type: text/html
- <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
- <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->
- </font> </font> </font> </script> </object> </blockquote> </pre>
- </table> </table> </table> </table> </table> </font> </font> </font><pre>Traceback (most recent call last):
- File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 936, in _wrap_create_connection
- return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
- File "/usr/lib64/python3.6/asyncio/base_events.py", line 794, in create_connection
- raise exceptions[0]
- File "/usr/lib64/python3.6/asyncio/base_events.py", line 781, in create_connection
- yield from self.sock_connect(sock, address)
- File "/usr/lib64/python3.6/asyncio/selector_events.py", line 439, in sock_connect
- return (yield from fut)
- File "/usr/lib64/python3.6/asyncio/selector_events.py", line 444, in _sock_connect
- sock.connect(address)
- PermissionError: [Errno 13] Permission denied
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/var/www/cgi-bin/printLight3.cgi", line 26, in <module>
- loop.run_until_complete(run(loop))
- File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
- return future.result()
- File "/var/www/cgi-bin/printLight3.cgi", line 14, in run
- devices = await getDevices(api)
- File "/var/www/cgi-bin/smartThingy.py", line 23, in getDevices
- devices = await api.devices()
- File "/usr/local/lib/python3.6/site-packages/pysmartthings/smartthings.py", line 87, in devices
- resp = await self._service.get_devices(params)
- File "/usr/local/lib/python3.6/site-packages/pysmartthings/api.py", line 113, in get_devices
- return await self.get_items(API_DEVICES, params=params)
- File "/usr/local/lib/python3.6/site-packages/pysmartthings/api.py", line 384, in get_items
- resp = await self.request("get", self._api_base + resource, params, None)
- File "/usr/local/lib/python3.6/site-packages/pysmartthings/api.py", line 358, in request
- headers={"Authorization": "Bearer " + self._token},
- File "/usr/local/lib64/python3.6/site-packages/aiohttp/client.py", line 1012, in __aenter__
- self._resp = await self._coro
- File "/usr/local/lib64/python3.6/site-packages/aiohttp/client.py", line 483, in _request
- timeout=real_timeout
- File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 523, in connect
- proto = await self._create_connection(req, traces, timeout)
- File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 859, in _create_connection
- req, traces, timeout)
- File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 1004, in _create_direct_connection
- raise last_exc
- File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 986, in _create_direct_connection
- req=req, client_error=client_error)
- File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 943, in _wrap_create_connection
- raise client_error(req.connection_key, exc) from exc
- aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.smartthings.com:443 ssl:default [Permission denied]
- </pre>
Add Comment
Please, Sign In to add comment