Respond to Webhook Redirect fails as undefined

Describe the problem/error/question

I have a workflow that starts with a user clicking a webhook link, then displays an n8n form, and lastly displays a second form after the first is submitted. This worked fine prior to upgrading to version 1.113.3 yesterday.

Now the user is getting the following response from the second “Respond to Webhook” node. It fails if I save the $execution.resumeFormUrl value first and it fails if I setup the node to specifically return a 302 response status with the Location header set.

{“code”:0,“message”:“Invalid value "undefined" for header "location"”}

What is the error message (if any)?

This is what the web browser displays instead of redirecting to the new url it should get in the location header.

{“code”:0,“message”:“Invalid value "undefined" for header "location"”}

Please share your workflow

Share the output returned by the last node

Note, to get to this final result you need to manually change the “…/step1” to “…/step2” in the address bar and hit enter when you get the error above. Otherwise, the workflow will never finish.

Form Submitted

Your response has been recorded

Information on your n8n setup

  • n8n version: 1.113.3 Community Edition
  • Database (default: SQLite): PostgresQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): container via AWS ECS
  • Operating system: The OS for the n8n.io/latest container

New Information

The second Response to Webhook node is returning an http response code of 500, Internal Server Error.

The error in the container log is:

Error in handling webhook request POST /form-waiting/161827/step1: Invalid value “undefined” for header “location”