-
Notifications
You must be signed in to change notification settings - Fork 278
Description
We are beta testing a new slack app. We are using the slack_bolt adapter
handler = AsyncSlackRequestHandler(slack_app)
@app.get("/slack/install")
async def install(req: Request):
return await handler.handle(req)
@app.get("/slack/oauth_redirect")
async def oauth_redirect(req: Request):
return await handler.handle(req)
A customer reported the installation failed without any helpful error message and checking our logs we only received an error=access_denied error without a message.
GET /slack/oauth_redirect?error=access_denied&state=545a0fef-8c27-4ec3-a4e5-dd2b2e2bab5b
What could be the root cause of this, would be possible to enrich these errors with some detail to make them actionable?
I tried cancelling an installation an in that case I do receive a proper description /slack/oauth_redirect?error=access_denied&state=a916a09d-f978-4140-bef3-477fd6b39f08&error_description=The+user+has+denied+access+to+the+scope%28s%29+requested+by+the+client+application.
I am assuming the user didnt have appropriate permissions to install the app in their workspace but I am waiting for their confirmation
Reproducible in:
pip freeze | grep slack
python --version
sw_vers && uname -v # or `ver`The slack_bolt version
slack_bolt-1.27.0
Python runtime version
Python 3.13.9