Why am I not authorized to install Pipedream on my workspace when running a code to fetch Slack messages from a specific channel?

This topic was automatically generated from Slack. You can find the original thread here.

i executed the following code :
import { axios } from “@pipedream/platform”;

export default defineComponent({
name: “Source Demo - Slack Messages”,
description: “This source fetches Slack messages from a specified channel”,
props: {
slack: {
type: “app”,
app: “slack”,
},
timer: {
type: “$.interface.timer”,
default: {
intervalSeconds: 15 ** 60, // Adjust the interval as needed
},
},
channel: {
type: “string”,
label: “Channel ID”,
description:
“The ID of the Slack channel you want to fetch messages from”,
},
},
dedupe: “greatest”,
async run({ steps, $ }) {
const data = await axios($, {
method: “get”,
url: https://slack.com/api/conversations.history?channel=${this.channel},
headers: {
Authorization: Bearer ${this.slack.$auth.oauth_access_token},
},
});

if (data.messages && data.messages.length > 0) {
  data.messages.forEach((message) => {
    this.$emit(message, {
      id: message.ts,
      summary: `Message from ${message.user}: ${message.text}`,
      ts: message.ts && +new Date(parseFloat(message.ts) ** 1000),
    });
  });
}

},
});

and when the url opens it gives the following error :
You are not authorised to install Pipedream on Pipedream Users
Pipedream is restricted for this workspace. Please reach out to one of your app managers if you would like additional information or to ask them to install this app.

It looks like you’re encountering an authorization issue with the Slack integration in your Pipedream component. The error message you’re seeing suggests that the Slack workspace you’re trying to interact with has restrictions on installing or using third-party apps like Pipedream. Here are a few steps you can take to resolve this issue: 1. Check Slack Permissions: Ensure that you have the necessary permissions within your Slack workspace to install and authorize third-party apps. You might need to be an admin or have similar privileges. 2. Contact Workspace Admin: If you’re not an admin, reach out to your Slack workspace’s admin or the person responsible for managing app installations. Share the error message with them and ask for the necessary permissions to install and use Pipedream. 3. Review Slack App Settings: If you have the necessary permissions, review the settings of the Slack app within the Slack API dashboard to ensure it’s configured correctly and has the necessary OAuth scopes for the operations you’re trying to perform. 4. Verify OAuth Token: Make sure that the OAuth access token you’re using in your component (this.slack.$auth.oauth_access_token) is valid and has not expired. Tokens can sometimes be revoked or expire, requiring reauthorization. 5. Pipedream Support: If you’ve checked the above and are still facing issues, consider reaching out to Pipedream’s support for further assistance. They might be able to provide more specific guidance based on the details of your integration and the error. Visit Support - Pipedream for more support options. Remember, the error you’re encountering is related to Slack’s permissions and app management policies, so it’s crucial to ensure that your Slack workspace’s settings and your user permissions align with what’s needed for Pipedream integration.

when i select my worksapce it says :

Pipedream encountered an error when connecting to your account.

Our Support Team has been notified and is looking into it.

I’m sorry to hear you’re experiencing issues with accessing your workspace on Pipedream. It seems like there might be a temporary problem with the platform or your account. While the Pipedream Support Team has been automatically notified, it might be helpful to directly reach out for more personalized assistance. You can submit a support ticket detailing your issue at Support - Pipedream. This way, you can provide more context or any additional details that might help in resolving the issue more efficiently.