-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Oauth with ExpressReceiver, AWSLambdaReceiver and aws-serverless-express #1074
Comments
Hi @shubhamAffinidi, thanks for asking the question!
This means that you can use But, to make your app functioning, the following changes are required:
The GitHub issue you referred to might confuse you - I'm sorry about that. I hope this was helpful to you! |
Hi @seratch , Thank you for responding so quickly. This solution works. Thank you so much! |
Hi @seratch, the url that is generated ( /slack/install ) is throwing 'Internal Server Error' message. It was working fine before but now it just throws error. These are my updated files.
listener.ts
serverless.yml
|
With the given information, I cannot tell anything helpful. I would recommend checking your CloudWatch logs etc. to figure out the cause of the internal server error. |
Seems like the server was not reflecting changes. Now it's working. Closing this issue. |
@seratch Just to confirm if using serverless we can't use the generated URL in the Slack app configuration page. |
@AmanKishore Not only for serverless use cases, we generally recommend going with |
###
DescriptionI have been working on the slack app deployment and have followed the steps mentioned in the Issue-784 . In local when we use the ngrok tunnel it works correctly since we have the '/slack/install' url as mentioned in the docs 'NOTE: The Add to Slack button on your app’s app configuration page will not work with Bolt’s built-in OAuth support. The app configuration Add to Slack button does not include a state value. You must use the slack/install route created by your Bolt application to install the app.'
But after deploying I don't know how to get that url and make it work. Also, when I try the 'Sharable URL' I get the following error
ERROR [ERROR] OAuth:InstallProvider:0 Error: redirect url is missing state or code query parameters
which is correct since the shareable URL does not have the state parameter as mentioned in the docs.
So what am I missing here?
Here is how my code looks like
App initialization
This is my serverless.yml
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: ^3.5.0
node version: v14.17.4
OS version(s):
Steps to reproduce:
Expected result:
Oauth to work correctly after deployment
Actual result:
Error is mentioned in the description
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.
The text was updated successfully, but these errors were encountered: