You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am using GCP Virtual Server for hosting, docker (compose) for deployment. I currently use ngrok to tunnel traffic to the slack server.
I use (also, currently) FileInstallationStore to persist the user installation. When I install the app via /slack/install, everything seems fine - no exception is being thrown. However when i receive /slack/events, i got this error: Although the app should be installed into this workspace, the AuthorizeResult (returned value from authorize) for it was not found.
The problem is that user installation never gets persisted to the file, my ./data/installations directory is empty, although ./data/states is not. The thing is, when I was running this locally (not on GCP VM), everything worked fine.
/slack/oauth_redirect is the default value for redirect_uri_path, I'm looking into your configuration redirect_uri_path="/slack/authorize_app" is set, so it should be used as the redirect uri instead of the default 🤔
Im not familiar with GCP, but the fact that the files are being written to ./data/states suggest the app it configured to write files to its volume, but it might be worth validating that files can be written to ./data/installations just to be safe
I rarely use pprint, but from the documentation and my testing, it might need to be used like this
print("AUTHORIZE:::")
pprint.pp(req)
Are you using the slack_bolt.adapter.fastapi.async_handler, we have examples/fastapi/async_oauth_app.py that shows how to use this adapter with fastapi to implement the OAuth flow it may help you understand what is happening on your end
Hello, I am using GCP Virtual Server for hosting, docker (compose) for deployment. I currently use ngrok to tunnel traffic to the slack server.
I use (also, currently) FileInstallationStore to persist the user installation. When I install the app via /slack/install, everything seems fine - no exception is being thrown. However when i receive /slack/events, i got this error:
Although the app should be installed into this workspace, the AuthorizeResult (returned value from authorize) for it was not found.
The problem is that user installation never gets persisted to the file, my ./data/installations directory is empty, although ./data/states is not. The thing is, when I was running this locally (not on GCP VM), everything worked fine.
My Slack App setup is:
My callbacks:
Callbacks /slack/oauth_redirect and /slack/authorize_app never get called.
Reproducible in:
Sorry, I am really not sure how to reproduce this :(
The
slack_bolt
versionslack==0.0.2
slack_bolt==1.22.0
slack_sdk==3.34.0
slackclient==2.9.4
Python runtime version
Python 3.12
OS info
Debian 12
Steps to reproduce:
I am not sure how to reproduce this, I just think I am doing something stupid...
Expected result:
User Installation gets persisted to the ./data/installations directory.
Actual result:
Because installation does not get persisted to the ./data/installations directory, the app does not work.
The text was updated successfully, but these errors were encountered: