Credentials with no auth flow set by credentials overwrite are not initialized properly

Hello,

I am setting credentials on my n8n using the REST endpoint method as per the instructions in these docs: n8n Embed Configuration | n8n Docs

This works wonderfully for the most part.

However i am experiencing issues with credential types that dont have any auth flow, for example Slack API. This operates simply by a token.

When i try to create a new Slack API credential in the UI, it just shows “Connection tested successfully”. (it does not show the Token field which is intended of course).

So everything looks good, but then it is as if this does not get finalized properly, as when i save this and try to use the credential, it lists it as “Needs first setup”.
And upon trying to use it in a slack node, it throws: Slack error response: “not_authed”


image

  • n8n version: 1.98.1
  • Database postgres
  • Running n8n via Docker

Hi @Bearman

It could be an issue with n8n not fully saving Slack token credentials when they’re created through the Embed/REST overwrite method. Even if it shows “Connection tested successfully,” it might still mark them as “Needs first setup” and cause a not_authed error. Creating the Slack credential directly via the /rest/credentials endpoint with type slackApi and your xoxb bot token, or adding it manually in the UI and saving, could fix it. If not, updating n8n to the latest version could help

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.