If you have a coding question, you can use stackoverflow with the tag 'errbot' and 'python'
sijis on master
Update README.md with new URL (… (compare)
_slack_upload
which calls Slack's files_upload
API. If the backend doesn't support the method directly, the SlackSDK module is avilable through the backend object as slack_web
. There's a method called api_call
which was carried forward from the original slack
backend that calls SlackSDK's api_call
method. It's a thin wrapper giving access to calling the Slack API directly. That might be another way of getting to the functionality you need.
Hai,
I'm facing the problem on my errbot recently, which is running fine from quite long time. We haven't done any changes in the recent time, all of sudden it started failing.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/errbot/backends/base.py", line 861, in serve_forever
if self.serve_once():
File "backends/err-backend-slackv3/slackv3.py", line 256, in serve_once
self.auth = self.slack_web.auth_test()
File "/usr/local/lib/python3.9/site-packages/slack_sdk/web/client.py", line 1512, in auth_test
return self.api_call("auth.test", params=kwargs)
File "/usr/local/lib/python3.9/site-packages/slack_sdk/web/base_client.py", line 145, in api_call
return self._sync_send(api_url=api_url, req_args=req_args)
File "/usr/local/lib/python3.9/site-packages/slack_sdk/web/base_client.py", line 182, in _sync_send
return self._urllib_api_call(
File "/usr/local/lib/python3.9/site-packages/slack_sdk/web/base_client.py", line 297, in _urllib_api_call
response = self._perform_urllib_http_request(url=url, args=request_args)
File "/usr/local/lib/python3.9/site-packages/slack_sdk/web/base_client.py", line 504, in _perform_urllib_http_request
raise err
File "/usr/local/lib/python3.9/site-packages/slack_sdk/web/base_client.py", line 412, in _perform_urllib_http_request
resp = self._perform_urllib_http_request_internal(url, req)
File "/usr/local/lib/python3.9/site-packages/slack_sdk/web/base_client.py", line 537, in _perform_urllib_http_request_internal
resp = urlopen( # skipcq: BAN-B310
File "/usr/local/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/usr/local/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.9/urllib/request.py", line 1389, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/local/lib/python3.9/urllib/request.py", line 1349, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Try again>
2022-03-11 20:51:22,049 INFO errbot.backends.base Reconnecting in 601 seconds (10 attempted reconnections so far).
!
, I want send help message back to user.
20:05:56 WARNING slackclient.client Failed RTM connect
Traceback (most recent call last):
File "/Users/dhanesh/.pyenv/versions/3.9.0/lib/python3.9/site-packages/slackclient/client.py", line 140, in rtm_connect
self.server.rtm_connect(use_rtm_start=with_team_state, **kwargs)
File "/Users/dhanesh/.pyenv/versions/3.9.0/lib/python3.9/site-packages/slackclient/server.py", line 168, in rtm_connect
raise SlackLoginError(reply=reply)
slackclient.server.SlackLoginError
20:05:56 ERROR errbot.backends.base Exception occurred in serve_once:
Traceback (most recent call last):
File "/Users/dhanesh/.pyenv/versions/3.9.0/lib/python3.9/site-packages/errbot/backends/base.py", line 861, in serve_forever
if self.serve_once():
File "/Users/dhanesh/.pyenv/versions/3.9.0/lib/python3.9/site-packages/errbot/backends/slack.py", line 453, in serve_once
raise Exception("Connection failed, invalid token ?")
Exception: Connection failed, invalid token ?
20:05:56 INFO errbot.backends.base Reconnecting in 41 seconds (5 attempted reconnections so far).
21:14:44 INFO errbot.bootstrap Found Storage plugin: Shelf.
Traceback (most recent call last):
File "/Users/dhanesh/.pyenv/versions/3.9.0/bin/errbot", line 8, in <module>
sys.exit(main())
File "/Users/dhanesh/.pyenv/versions/3.9.0/lib/python3.9/site-packages/errbot/cli.py", line 395, in main
bootstrap(backend, root_logger, config, restore)
File "/Users/dhanesh/.pyenv/versions/3.9.0/lib/python3.9/site-packages/errbot/bootstrap.py", line 257, in bootstrap
bot = setup_bot(bot_class, logger, config, restore)
File "/Users/dhanesh/.pyenv/versions/3.9.0/lib/python3.9/site-packages/errbot/bootstrap.py", line 166, in setup_bot
backendpm = BackendPluginManager(
File "/Users/dhanesh/.pyenv/versions/3.9.0/lib/python3.9/site-packages/errbot/backend_plugin_manager.py", line 51, in __init__
raise PluginNotFoundException(
errbot.backend_plugin_manager.PluginNotFoundException: Could not find the plugin named SlackV3 in ['/Users/dhanesh/.pyenv/versions/3.9.0/lib/python3.9/site-packages/errbot/backends’].