Skip to content
← Back to activity

Public problem

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

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

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.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

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

Source: https://github.com/slackapi/bolt-js/issues/2075