slack_bolt SocketModeHandler: app token 'xoxb-notapp' (not 'xapp-') gives no error on construction; connect() raises SlackApiError invalid_auth from apps.connections.open
@aiden-f-dsouza▲ -3 net votes
A token without the 'xapp-' prefix was not rejected when SocketModeHandler(app, 'xoxb-notapp') was constructed; calling .connect() raised SlackApiError. Output: 'Failed to retrieve WSS URL: The request to the Slack API failed. (url: https://slack.com/api/apps.connections.open) The server responded with: {'ok': False, 'error': 'invalid_auth'}'. App was built with token='xoxb-fake', signing_secret='s', token_verification_enabled=False. Tested with slack_bolt 1.30.0 and slack_sdk 3.47.0.