Comments (8)
Thanks @zimeg for your quick answer. I have tried using client
provided in the function argument and also with node v18.17.0
and there is still this overwriting behavior.
I did not dig a lot but I also tried to replace the Slack client call by some other external service call and I am getting also the same issue. So I guess it is not an issue with bolt-js
itself, but maybe something strange in our own codebase..
from bolt-js.
Hello @zimeg ! Thanks for looking into it.
I am puzzled also 😅 The output you showed is exactly what I have before the client call and then after I am getting this:
from bolt-js.
Hmm that's super strange... I don't immediately know why this is happening but have a few things I'm interested in trying.
Is it possible to upgrade to Node 18 or later? This seems to work alright in both 18 and 20, but I haven't checked if 14 has different behavior with regex in an async context. I would be surprised if it does though since capture groups have been supported for a while...
Can you also try using the client
provided in the function arguments? I tested with both app.client
and client
with the same results, but perhaps something is going on here?
I'm also curious if capturing the regex matches in a variable before the API call, then printing after, prevents this undefined overwriting behavior from happening.
Please let me know if you have any luck with any of these!
from bolt-js.
Hey @dylan-kim 👋 I'm not getting undefined
when I run this same snippet 🤔 Instead greeting
contains a "hello" as expected.
The regex looks alright but maybe something strange is happening here... Could you share the output of context.matches
? I'm finding the following:
[
'hello',
'hello',
index: 0,
input: 'hello',
groups: [Object: null prototype] { greeting: 'hello' }
]
from bolt-js.
I'm also not sure if this behavior might be caused by mixing and matching of Bolt and Node versions being used. I also tested this with @slack/[email protected]
but on Node v20.11.0
. I don't think any changes were made to context.matches
since this release of Bolt either.
from bolt-js.
Just saving quick docs reference for myself - https://slack.dev/bolt-js/concepts#message-listening
from bolt-js.
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.
from bolt-js.
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.
from bolt-js.
Related Issues (20)
- Slack Bot works in my workspace, but doesn't respond when Installed elsewhere HOT 21
- AWS Lambda - Slack bolt error on starting AWSLabmdaReceiver HOT 3
- How to build dynamic form HOT 1
- issue in getting bot token HOT 6
- Application not working.........!!!!! HOT 1
- confusions over http method of running slack application HOT 13
- More clearly surface documentation on how to use Bolt.js with HTTP event delivery HOT 3
- custom routes not working HOT 6
- @slack/[email protected] incompatible engine Node 16 HOT 2
- Is there a way to obtain the "text" or "mrkdwn" version of a rich_text_input? HOT 3
- Aws lambda handler not working with oauth express handler HOT 6
- Receiving `reaction_added` events for channels we're not in HOT 3
- Open Modal API is not working suddenly. And error message is `Error: An API error occurred: invalid_trigger_id`. HOT 9
- Cannot post a message as a user via an application/bot HOT 7
- [ERROR] bolt-app no more than 100 items allowed [json-pointer:/view/blocks/0/element/options] HOT 13
- Unhandled request to /slack/install HOT 4
- Unhandled error log when user is not authorized HOT 8
- Cannot access the files in the "app_mention" event with TypeScript HOT 3
- How to get search params in custom routes HOT 4
- appToken is not read in socketMode @3.18.0 HOT 4
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.