Code Monkey home page Code Monkey logo

Comments (6)

vadivelJ96 avatar vadivelJ96 commented on June 12, 2024 1

from bolt-js.

filmaj avatar filmaj commented on June 12, 2024

Hello @vadivelJ96. We will need more information to help you. Ensure you have read our documentation about Authenticating with OAuth as a prerequisite.

Are you using a sample installation store provided by Bolt, like the Memory or File store? Or did you implement your own, and if so, did you implement a storeInstallation method?

The way installation store works is that upon your app being installed to a new workspace, as part of the installation OAuth flow, the installation store will run the storeInstallation method of your installation store. We recommend implementing your own and not using the provided sample memory or file store, as they are simplistic and not suitable for production. In any case, storeInstallation should implement a way to persistently store the installation information (like workspace ID and issued access tokens for that workspace); for example, store it to a database. Working in tandem with this method, once your app is installed into a workspace, every event originating from that workspace and sent to your app will trigger your app's fetchInstallation method to retrieve the stored information in order to retrieve the issued access token and be able to interact with your workspace.

from bolt-js.

vadivelJ96 avatar vadivelJ96 commented on June 12, 2024

from bolt-js.

filmaj avatar filmaj commented on June 12, 2024

How is your receiver initialized?

I see that you are overwriting the POST method to /slack/events - this may be the problem. This is the default route bolt-js uses to receive event payloads from Slack over HTTP (as described in our Getting Started with HTTP docs here). If you are overwriting this route, I would be surprised bolt works at all.

Also, which Request URL (just the path portion is fine) did you configure on your app's configuration page on api.slack.com/apps?

from bolt-js.

filmaj avatar filmaj commented on June 12, 2024

Not sure what to tell you, I tried using the basic example here and it worked fine for me w/ a new app across different workspace installations: https://github.com/slackapi/bolt-js/blob/main/examples/oauth-express-receiver/app.js

Perhaps set the logging level in your receiver and app to DEBUG and inspect the logs to see if that gives you clues as to what is going on.

from bolt-js.

vadivelJ96 avatar vadivelJ96 commented on June 12, 2024

yes it worked after a few changes.. thanks for your help..!!

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.