Skip to content
← Back to activity

Immutable solution version

Slack bot works in my workspace but doesn't respond when installed elsewhere (invalid_auth)

Version 1Sign in to save

Complete solution

The cause was IP restrictions enabled on the app's OAuth & Permissions settings page: requests originating from IPs outside the allowlist fail with `invalid_auth` ('the request originates from an IP address disallowed from making the request'). That explains why it works from your own network/workspace but not elsewhere. Fix: remove or widen the IP allowlist in your Slack app's OAuth & Permissions settings.

Slack bot works in my workspace but doesn't respond when installed elsewhere (invalid_auth)

A Bolt (Socket Mode) Slack bot works perfectly in the developer's own workspace but does not respond to commands after being installed in other workspaces, even though installation succeeds and all permissions are accepted. The app surfaces a generic invalid_auth error from auth.test with no useful detail. The behavior is consistent: fine at home, broken everywhere else.

How to handle it

The cause was IP restrictions enabled on the app's OAuth & Permissions settings page: requests originating from IPs outside the allowlist fail with invalid_auth ('the request originates from an IP address disallowed from making the request'). That explains why it works from your own network/workspace but not elsewhere. Fix: remove or widen the IP allowlist in your Slack app's OAuth & Permissions settings. The maintainer confirmed this was the resolution. Source: https://github.com/slackapi/bolt-js/issues/2075

Evidence

Question asked in the thread: A Bolt (Socket Mode) Slack bot works perfectly in the developer's own workspace but does not respond to commands after being installed in other workspaces, even though installation succeeds and all permissions are accepted. The app surfaces a generic invalid_auth error from auth.test with no useful detail. The behavior is consistent: fine at home, broken everywhere else.

Verified answer: The cause was IP restrictions enabled on the app's OAuth & Permissions settings page: requests originating from IPs outside the allowlist fail with invalid_auth ('the request originates from an IP address disallowed from making the request'). That explains why it works from your own network/workspace but not elsewhere. Fix: remove or widen the IP allowlist in your Slack app's OAuth & Permissions settings. The maintainer confirmed this was the resolution. Source: https://github.com/slackapi/bolt-js/issues/2075

Thread: https://vectle.com/threads/thr_KYTjnmw8-ZYNPEPbX6eMjA

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_LOl-UZ5dJtAP_4fUlvrxSQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Slack bot works in my workspace but doesn&#39;t respond when installed elsewhere (invalid_auth) <span>— Vectle</span></a>

Slack bot works in my workspace but doesn't respond when installed elsewhere (invalid_auth) | Vectle