Comments (4)
I've read the docs where it says that there is no processing should be done, so i guessed it was the desired behavior of the sdk
For my side i solved it with setting raise_error_for_unhandled_request
and adding something like
@app.error
def handle_error(response):
response.status = 500
from bolt-python.
@WilliamBergamin When process_before_response is set to False (the default setting), this is an expected behavior. This is not a bug. The issue reporter might notice it afterwards.
from bolt-python.
Ah, I posted my above comment at the same timing!
I meant that, when process_before_response is set to False (when you don't pass the argument to App constructor, the value is False by default), the error within your @app.event
listener does not affect the HTTP response status. Responding to a request from Slack would be done asynchronously regardless of your listener execution result. If you desire to return a 500 error when your listener fails, you can set process_before_response=True in App constructor. A downside of this approach is that your listener execution must complete within 3 seconds (this is a requirement by Slack server side).
I hope this clarifies. I'm in a different timezone, so if you have further questions on this, other team members like @WilliamBergamin can help you out during my night time.
from bolt-python.
Thanks @glebkrapivin for writing in 💯
This seems like a real bug, this issue could be a feature request
, did you intend to close it?
from bolt-python.
Related Issues (20)
- 10MB limit in file input block element HOT 7
- Email verified field for user HOT 5
- Message event is able to read personal messages sent to/recieved from other users in same workspace from installed app. HOT 9
- views_update not updating initial_value of text area when initial_value was set while generating the initial view HOT 4
- Store Installation data in respective Slack org's Infrastructure HOT 8
- Invalid request signature detected when running a bot inside a container HOT 2
- MultiTeamsAuthorization error HOT 4
- @app_mention event is not being triggered sometimes HOT 4
- How to enable multiple connection in socket mode in bolt python HOT 6
- Customize user-facing message sent when an installation is not managed by bolt-python app HOT 1
- Slack API revokes an access token after some time when running the code in Lambda HOT 4
- Bolt Slack API is very unclear on multiple workspace install HOT 6
- enable_token_revocation_listeners() is not invoking unistallation method of a custom installation store HOT 2
- [Question] Is there a way to specify the default tab for an app HOT 3
- Allow for the "confirm" field within the Overflow menu element to be used on a per-item basis HOT 2
- Redirect after Request to Install submission for Slack App HOT 1
- Message Event: how to distinguish messages sent to bot DM's as oppose to DM's between users. HOT 1
- How to send data for external_select where it takes more time to fetch the data? HOT 3
- How does `bolt-python` rotate tokens? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolt-python.