Webhook Redirect not work (Slack App OAuth)

Describe the problem/error/question

I have created a workflow to support the installation process of a Slack App which stores the details of the install in a Supabase table.

The workflow is set to redirect the user back into the app, but it returns a 200 rather than a 301 as I would expect. I have tried both web links and a Slack deeplink.

I have tested that the final node is working by rendering out text instead successfully.

What is the error message (if any)?

Status 200 rather than a 301/302

Please share your workflow

Share the output returned by the last node

This is a screen shot of the developer console network request, the response is empty

Information on your n8n setup

  • n8n version: 2.1.4
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Linux

Hi @anthonycmain,

Are you able to explain your use case in a bit more detail. What are you trying to achieve with this workflow?

I’m trying to implement the OAuth requirements of a Slack Bot as documented here:

I issue a link to install the app which requests the Slack permission, generates the access token etc and I store that for future use.

I then want the workflow to redirect the user to the app home screen or anywhere to be honest!

n8n will handle all of this complexity for you. Have a look at the documentation here

When using the Slack Nodes

When using rest apis:

Hmm I’ll double check, this is specifically the OAuth workflow for a published Slack App installation process, not just connecting n8n to it - all that stuff works fine in dev mode on my single Slack instance.

Maybe I’ve missed something, I’ll have a look tonight, thanks for the pointers

Just to be clear though the actually problem seems to be the Webhook Response node not actually performing a redirect and just providing an empty response and a 200 status rather than a 301

The redirect is definitely working. Remember the redirect will only work from a browser and not n8n editor itself.