Description
I was following the Migration Guide and some calls now throw exceptions which didn't occur back to 1.3.x version. There is nothing in the migration documentation about that.
What type of issue is this? (place an x in one of the [ ])
Requirements (place an x in each of the [ ])
Bug Report
Reproducible in:
slackclient version: 2.1.0
python version: 3.7.3
OS version(s): Ubuntu 19.04
Steps to reproduce:
from os import environ
from slack import WebClient
slack_client = WebClient(environ["SLACK_API_TOKEN"], timeout=30)
api_call = slack_client.api_call('users.list')
if api_call.get('ok'):
# retrieve all users so we can find our bot
users = api_call.get('members')
for user in users:
if 'name' in user and user.get('name') == SLACK_BOT_NAME:
BOT_ID = user.get('id')
else:
print('Could not reach Slack with your SLACK_BOT_TOKEN. Please check if ' +
'your SLACK_BOT_TOKEN and SLACK_BOT_NAME are both correct.')
exit(1)
Expected result:
Code goes through IF statement to check the call result.
Actual result:
Exceptions are given such as:
aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host www.slack.com:443 ssl:None [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)]
Attachments:
Sample project being migrated: https://github.com/staticdev/k8s-python-slackbot/blob/master/echobot.py
Description
I was following the Migration Guide and some calls now throw exceptions which didn't occur back to 1.3.x version. There is nothing in the migration documentation about that.
What type of issue is this? (place an
xin one of the[ ])Requirements (place an
xin each of the[ ])Bug Report
Reproducible in:
slackclient version: 2.1.0
python version: 3.7.3
OS version(s): Ubuntu 19.04
Steps to reproduce:
Expected result:
Code goes through IF statement to check the call result.
Actual result:
Exceptions are given such as:
aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host www.slack.com:443 ssl:None [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)]
Attachments:
Sample project being migrated: https://github.com/staticdev/k8s-python-slackbot/blob/master/echobot.py