Comments (4)
Ok, it works. So it did not work when I used bun
even though my vars were loaded, when I changed to node
the values were not loaded. I guess I cannot use bun
for it. I don't know enough to understand why the different behaviour.
Thanks for your time and sorry for wasting it :).
from bolt-js.
Hi @headzik, thanks for asking the question! I've checked if your code example works for me, and I didn't see any issues with the SLACK_APP_TOKEN resolution using bolt-js 3.18.0. Probably there is still something wrong with your settings when running your app. I hope you'll find the cause out soon.
from bolt-js.
Thanks for the quick response. What could it be then? Why would it be settings of my app if it works in Python with the same token? What node version do you have?
from bolt-js.
What node version do you have?
I ran the code with Node 20 but it should not matter for this.
Why would it be settings of my app if it works in Python with the same token?
This is not an issue related to the validity of token. The token is not loaded in your Node.js app. As you can see here, the error can be thrown only when the appToken parameter is missing. You might set SLACK_APP_TOKEN variable in your shell session, but the data might not be loaded within your Node.js app for some reason (e.g., dotenv loads different set of data).
from bolt-js.
Related Issues (20)
- Cannot access the files in the "app_mention" event with TypeScript HOT 3
- How to get search params in custom routes HOT 4
- Links with ampersand do not work in Slack iOS app HOT 6
- Add flag to `AwsLambdaReceiver` to disable Signature Verification HOT 1
- Events Subscription is continuously being turned off when we kill the process HOT 4
- Add reply_in_thread method HOT 1
- Run multiple replicas in k8s of bot app HOT 1
- Frequent disconnects in socket mode HOT 9
- Unable to upload a file in a direct message using files.completeUploadExternal HOT 5
- `too_many_websockets` causes Cannot read properties of undefined (reading 'event') HOT 5
- Cannot respond to incoming message events with `say` using the Bun runtime HOT 4
- Keep getting Error: Cannot write headers after they are sent to the client HOT 3
- How do I create a custom ConsoleLogger? HOT 1
- Better typing for block actions payload HOT 3
- How to access Company ID during OAuth for Slack App Installation HOT 2
- Add docs/sample for using browser cookies to pass custom app data during OAuth flow
- chat.postMessage returns channel name in the response HOT 4
- How do i update "messages_tab_read_only_enabled" to true/false programmatically HOT 1
- Update Ruby version for documentation generation (2.7.6 is end-of-life) HOT 1
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.