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

Slack Bot - Access token test is invalid, but bot still works #2436

Closed
mjquinlan2000 opened this issue Nov 15, 2021 · 4 comments
Closed

Slack Bot - Access token test is invalid, but bot still works #2436

mjquinlan2000 opened this issue Nov 15, 2021 · 4 comments
Assignees
Labels
node/issue Issue with a node

Comments

@mjquinlan2000
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Slack API credential
  2. Add a bot access token
  3. Test the connection
  4. Notice that it fails even if the token is valid. The error code is "missing_scopes"

image

Expected behavior
I would expect the test connection behavior to pass. The token is valid and works in my workflows, but does not pass the test call

Environment (please complete the following information):

  • Docker Image
  • n8n: 0.149.0
  • Whatever is in the docker image
  • Postgres
  • queue

Additional context

This does not affect the functionality of workflows, but it fails the test when saving the credentials. This is confusing as the credentials still work, but it displays that they won't.

@Joffcom
Copy link
Member

Joffcom commented Dec 5, 2021

Hey @mjquinlan2000,

I was just taking a look through some of the issues and spotted this one.

The credentials test uses users.profile.get, to remove the error you would need to include this scope for your bot.

This is something that will need to be updated in the documentation.

@Joffcom Joffcom self-assigned this Jan 5, 2022
@Joffcom Joffcom added the node/issue Issue with a node label Mar 21, 2022
@RicardoE105
Copy link
Contributor

@Joffcom, I think we. can omit the error: "missing_scopes" and only errors when "invalid_auth." That way, we only care about the token validity and not whether it has the right scopes for the call.

@janober
Copy link
Member

janober commented Apr 22, 2022

Fix got merged with #3151

@janober janober closed this as completed Apr 22, 2022
@janober janober added the Upcoming Release Will be part of the upcoming release label Apr 22, 2022
@janober
Copy link
Member

janober commented Apr 25, 2022

Fix got released with n8n@0.174.0

@janober janober removed the Upcoming Release Will be part of the upcoming release label Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node/issue Issue with a node
Projects
None yet
Development

No branches or pull requests

4 participants