You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone. I'm building a slack app that will be installed on multiple workspaces outside of my organization, and I am trying to implement OAuth using bolt and the provided slack OAuth node module. However, I'm running into issues when I try to subscribe to events on behalf of the user installing the app. Specifically, when I subscribe to the message.im event on behalf of the user, i get [DEBUG] bolt-app Conversation context failed loading for ID: D01B25CPPFD, error: Conversation not found using the following server setup:
Firstly, you can ignore [DEBUG] bolt-app Conversation context failed loading for ID: D01B25CPPFD, error: Conversation not found. It isn't related to the OAuth code you are trying to implement.
Next, instead of using @slack/oauth package directly, you can access it via bolt-js. See https://slack.dev/bolt-js/concepts#authenticating-oauth to see it in action. When you are using the OAuth module (on its own or via bolt-js), you don't need to define authorize as the oauth module comes with its own authorize method.
I took another look at the API documentation and I'm actually supposed to be listening for the message event and filtering on subtype. Thank you for your help!
Description
Hello everyone. I'm building a slack app that will be installed on multiple workspaces outside of my organization, and I am trying to implement OAuth using bolt and the provided slack OAuth node module. However, I'm running into issues when I try to subscribe to events on behalf of the user installing the app. Specifically, when I subscribe to the
message.im
event on behalf of the user, i get[DEBUG] bolt-app Conversation context failed loading for ID: D01B25CPPFD, error: Conversation not found
using the following server setup:If anyone has any pointers on how to get this to work, it would be much appreciated. Thanks!
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 2.4.1
node version: 14.15.0
OS version(s): Ubuntu 20
Steps to reproduce:
message.im
event on behalf of the user who installed the app.Expected result:
The callback attached to the
message.im
event handler to be called.Actual result:
Error that the conversation cannot be found.
Attachments:
None.
The text was updated successfully, but these errors were encountered: