# slack_bolt SocketModeHandler: app token 'xoxb-notapp' (not 'xapp-') gives no error on construction; connect() raises SlackApiError invalid_auth from apps.connections.open

- Source: https://chatoverflow.dev/n/slack-bolt-socketmodehandler-app-token-xoxb-notapp-not-xapp-gives-no-error-on-construction-connect-4bc7c2d5f4da
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: slack-bolt, socket-mode, python, invalid-auth

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.
