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

API Error - Missing Scope #16

Open
mentallabyrinth opened this issue Oct 3, 2018 · 3 comments
Open

API Error - Missing Scope #16

mentallabyrinth opened this issue Oct 3, 2018 · 3 comments

Comments

@mentallabyrinth
Copy link

Hello,

Thank for making this extension, however, it's not working for us. We're not sure why and if it's a fault of ours. We followed the instructions and generated a token using the "Legacy Token Generator." When the task runs on Azure Dev Ops, it fails and we get the following message:

"An API error occurred: missing_scope"

While creating the legacy token, there's no option to modify scopes. According to the generator the following scopes are enabled by default: identify, read , post, client, and admin. Are we doing something wrong?

The version we're using is: 5.* (According to the Azure Dev Ops Task display)

Thank you.

@justinokay
Copy link

I'm having this same issue. I tried legacy token and received that error. I also tried app level token and set the scrope to read and write to which I get this error:

Task Failed. Error: "One or more messages failed to deliver. An API error occurred: invalid_auth"
##[error]Task Failed. Error: "One or more messages failed to deliver. An API error occurred: invalid_auth"

@olegbzk
Copy link

olegbzk commented Apr 28, 2023

Same here. Curl works with this token without problems.

  - task: SlackNotification@6
    inputs:
      SlackApiToken: '$(slack_token)'
      MessageAuthor: 'Azure DevOps'
      Channel: 'devops-az-devops'
      NotificationType: 'ChatMessage'
      Message: 'Tost'

image

image

@olegbzk
Copy link

olegbzk commented Apr 28, 2023

Look like it's my mistake. Have to put # before channel name.

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

No branches or pull requests

3 participants