Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Slack Piece's Send message to a channel action does not show a list of channels #4598

Open
Gaket opened this issue Apr 30, 2024 · 4 comments

Comments

@Gaket
Copy link

Gaket commented Apr 30, 2024

Describe the bug
Slack Piece's Send message to a channel action does not show a list of channels and doesn't work as a result.

To Reproduce
Steps to reproduce the behavior (seems to be Slack-connection specific):

  1. Create a new flow
  2. Add a Slack piece v0.5.6 or v0.5.7
  3. Set Send to channel action
  4. Connect to a Slack account
  5. Open the Choose a channel list
  6. Wait for loading
  7. See the "Throws an error, reconnect or refresh the page" error

Expected behavior
There is a list of different channels to send messages to

Screenshots
This is how it looks like:
image

Permissions were given:
image

Additional context

I have another Slack workspace and a personal ActivePieces account where it works well.

I have tried to delete and set the Slack connection again on the work account, it didn't help.

Other actions:
"Send message to a user" - work well
"Request approval in a channel" - errors out the same way.

I looked at the response of piece-slack request, looks like the permissions are fine:

"auth": {
        "description": "",
        "authUrl": "https://slack.com/oauth/v2/authorize?user_scope=search:read,users.profile:write",
        "tokenUrl": "https://slack.com/api/oauth.v2.access",
        "required": true,
        "scope": [
            "channels:read",
            "channels:manage",
            "channels:history",
            "chat:write",
            "groups:read",
            "groups:write",
            "reactions:read",
            "mpim:read",
            "mpim:write",
            "im:write",
            "users:read",
            "files:write",
            "files:read",
            "users:read.email"
        ],
        "type": "OAUTH2",
        "displayName": "Connection"
    },

The error seems to be coming from the
https://cloud.activepieces.com/api/v1/pieces/options call:

{
    "disabled": true,
    "options": [],
    "placeholder": "Throws an error, reconnect or refresh the page"
}

The Active Pieces app was added to the required channel, it doesn't look like the issue is bound to it.

@Gaket
Copy link
Author

Gaket commented May 21, 2024

Hi! Is there any way I can help providing logs without deploying the app myself? I don't have much JS/TS experience, but I can try.

@abuaboud
Copy link
Contributor

Hi @Gaket

Can you check the suggestion here and please let me know if it fixes the issue?

https://community.activepieces.com/t/slack-send-message-to-a-channel-no-channels-in-the-dropdown/4134/4

@Gaket
Copy link
Author

Gaket commented May 24, 2024

Hi @abuaboud!

Unfortunately, it didn't help. What I did:

  1. Removed the piece
  2. Went to connections, removed the connection
  3. Created a new connection with a different name
  4. Added the Slack piece (v 0.5.10)
  5. Stil getting the same error
image

@Gaket
Copy link
Author

Gaket commented May 29, 2024

Just in case, the same issue persists with "Send a message" action when I try to select a channel:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants