-
Notifications
You must be signed in to change notification settings - Fork 248
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
SlackRequestHandler does not work on Lambda #132
Comments
@cazziwork Can you share more information (e.g, python runtime version you use, code snippet, the tool you use for deployments)? |
@seratch Python Runtime: 3.8
|
@cazziwork Thanks for the prompt reply! In addition to that, can you share the info about your API Gateway? I haven't managed to reproduce your situation yet. If you enable a simple HTTP API as below, the
I'm happy to support the pattern you mentioned but just wanted to know what the pattern is. |
I've checked Chalice's code and found the expected payload data structure is the same with your report. I've sent #133 to fix this and a new beta version will be released today. |
I just released version 0.9.6b0. Try the version out when you have a chance! Thanks a lot for helping us fix this issue. |
Thank you for your quick response. |
Problem
I was create app by bolt for python, And deploy on Lambda.
But It's not work correct.
I investigated this issue and found problems in determining the following areas.
https://github.com/slackapi/bolt-python/blob/main/slack_bolt/adapter/aws_lambda/handler.py
line:35
method = event.get("requestContext", {}).get("http", {}).get("method")
On my Lambda environment, it's always return
None
.Workaround
I modified it below.
method = event.get("requestContext", {}).get("httpMethod", {})
It's work correct.
The text was updated successfully, but these errors were encountered: