Code Monkey home page Code Monkey logo

Comments (4)

headzik avatar headzik commented on June 9, 2024 1

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.

seratch avatar seratch commented on June 9, 2024

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.

headzik avatar headzik commented on June 9, 2024

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.

seratch avatar seratch commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.