Skip to content

Commit 754edbf

Browse files
committed
Include additional note section to fix SSL cert in case oferror
1 parent ff85f0e commit 754edbf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/posts/160604-build-first-slack-bot-python.markdown

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,18 @@ Now start giving Starter Bot commands in your channel.
336336

337337
<img src="/img/160604-simple-python-slack-bot/working-starterbot.png" width="100%" class="technical-diagram img-rounded" alt="Give StarterBot commands in your Slack channel.">
338338

339+
_**Additional Note:**_ Currently there's an issue with the `websocket` package and the CA certificate it uses, so if you encounter an error like:
340+
```
341+
...
342+
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)
343+
...
344+
slackclient.server.SlackConnectionError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)
345+
Connection failed. Exception traceback printed above.
346+
```
347+
348+
There are a couple of things that can be done:
349+
1. Downgrading the websocket-client library to `0.47.0`
350+
2. Or, download the certificate (`wget https://www.tbs-certificats.com/issuerdata/DigiCertGlobalRootCA.crt`), then set the environment variable `export WEBSOCKET_CLIENT_CA_BUNDLE=DigiCertGlobalRootCA.crt`
339351

340352
## Wrapping Up
341353
Alright, now you've got a simple Starter Bot with a bunch of places in the

0 commit comments

Comments
 (0)