Comments (3)
This is probably way too late but a few things:
Assumptions:
That your app is correctly listening to a port, which I guess can be inferred by the fact that your function is hit by Slack events.
That MemoryStore is accessing the memory store file that's in slapp.
Major:
In your context, you never call next() which means that it will just hang in your context and not continue. This follows the express middleware pattern in that you need to explicitly call next(). This explains why your middleware and the subsequent routes aren't hit. Also, since Slack tries to retry several times if it gets no response, this also explains why you get repeated attempts/hits to context.
Minor:
This is probably just a proof of concept but I would recommend not having the db connect done in the context since that function is called on each Slack call. You don't want to have the connect and shutdown each call since that'd be extremely inefficient as opposed to initiating the connect once and having the pool live across the server duration.
You have a typo in reaction_added
from bolt-js.
Thank you for your response. I have indeed moved on and implemented directly against the Slack API but hopefully this will be useful information for other people.
Thanks
from bolt-js.
Thanks @simonsayscode! @nicolasbrigodiot sorry we let this slip by! The key issue was not calling next()
in the context function.
from bolt-js.
Related Issues (20)
- Intermittent UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'type' of undefined HOT 2
- How do you develop at 2 at the same time with Slack? HOT 2
- Incorrectly formatted threaded broadcast reply message will raise `thread_broadcast` event HOT 6
- `PinnedMessageItem` interface missing `ts` HOT 1
- Multiple fields missing in `ChannelCreatedEvent` interface
- (Set a clear title describing the issue) HOT 2
- `client.chat.postMessage` with a user token throws `invalid_auth` error HOT 3
- Allow in thread response in `respondFn` HOT 1
- How do I ignore threaded messages from within the message listener? HOT 3
- ERROR : Please try again or contact the app owner (reason: slack_oauth_missing_code) HOT 15
- chat:write:bot permission needed even though I have chat:write permission HOT 5
- Slack Block Builder do not update static select value in modal HOT 2
- Keep getting ETIMEDOUT errors / warning messages HOT 7
- How to get rich_text_input in slack modal ? HOT 13
- Receiving multiple events for simple messages in web socket mode HOT 1
- Upgrade axios to resolve CVE-2024-39338 HOT 3
- Supporting for Socket client & server timeout missing HOT 5
- Install and authorize multiple slack app clients with a single bolt js server HOT 3
- Using bolt's redirect URI for OIDC HOT 10
- Bolt App Methods Hanging with `ETIMEDOUT` Warning During `chat.postMessage` Execution HOT 10
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-js.