I am getting SSL error while creating any app with slack_bolt and python 3.11. When I change python version to 3.9 all works well, tried on multiple machines. Since I have to use python 3.11 in my org i am stuck with this error I have tried all solutions from internet and nothing works.
Is there any issue with SSL and slack_bolt ?
Code is pretty basic :
import os
from slack_bolt import App
from slack_bolt.adapter.socket_mode import SocketModeHandler
SLACK_BOT_TOKEN = <bot_toen>
SLACK_APP_TOKEN = <app_token>
app = App(token=SLACK_BOT_TOKEN)
if __name__ == "__main__":
SocketModeHandler(app, SLACK_APP_TOKEN).start()
Error :
Failed to send a request to Slack API server: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)>
Tried all solutions available on internet related to cerficates or SSL but still getting same error