You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this issue today after pip install slack_machine and follow the tutorials.
My local_settings.py is
SLACK_API_TOKEN="hidden"PLUGINS= []
Then I ran slack-machine and saw the output below:
Initializing Slack Machine:
Loading settings...
Initializing storage using backend: machine.storage.backends.memory.MemoryStorage
Loading plugins...
Starting Slack Machine:
✓ Connected to Slack
✓ Scheduler started
Bottle v0.13-dev server starting up (using WSGIRefServer())...
✓ Web server started
Listening on http://0.0.0.0:8080/
✓ Dispatcher started
Hit Ctrl-C to quit.
Traceback (most recent call last):
File "/home/tradeops/.virtualenvs/default/bin/slack-machine", line 8, in<module>sys.exit(main())
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/machine/bin/run.py", line 14, in main
bot.run()
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/machine/core.py", line 211, in run
self._dispatcher.start()
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/machine/dispatch.py", line 34, in start
self._client.start()
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/machine/clients/singletons/slack.py", line 118, in start
self.rtm_client.start()
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/slack/rtm/client.py", line 198, in start
return self._event_loop.run_until_complete(future)
File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
returnfuture.result()
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/slack/rtm/client.py", line 329, in _connect_and_read
url, data = await self._retreive_websocket_info()
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/slack/rtm/client.py", line 503, in _retreive_websocket_info
resp = await self._web_client.rtm_connect()
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/slack/web/base_client.py", line 214, in _send
http_verb=http_verb, api_url=api_url, req_args=req_args
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/slack/web/base_client.py", line 244, in _request
async with session.request(http_verb, api_url, **req_args) as res:
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/aiohttp/client.py", line 1012, in __aenter__
self._resp = await self._coro
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/aiohttp/client.py", line 473, in _request
ssl=ssl, proxy_headers=proxy_headers, traces=traces)
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 291, in __init__
self.update_proxy(proxy, proxy_auth, proxy_headers)
File "/home/tradeops/.virtualenvs/default/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 519, in update_proxy
raise ValueError("Only http proxies are supported")
ValueError: Only http proxies are supported
The server is an Amazon Cloud server, no proxy is set (env | grep -i proxy is empty).
What's interesting is that, if I run this locally, and install a HTTP proxy server and set it in the config like
Hi there,
I ran into this issue today after
pip install slack_machine
and follow the tutorials.My local_settings.py is
Then I ran
slack-machine
and saw the output below:The server is an Amazon Cloud server, no proxy is set (
env | grep -i proxy
is empty).What's interesting is that, if I run this locally, and install a HTTP proxy server and set it in the config like
...works like a charm.
I may have misunderstood but how to properly run it on the server without any proxy? Thanks!
The text was updated successfully, but these errors were encountered: