Describe the problem/error/question
I just upgraded to the latest version and I have a syntax error in code that used to work.
{{ const responseUrl="https://myserver.com/webhook/webhook-url-here" }}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
.
.
.
<div class="rating-buttons">
<a href="{{$responseUrl}}?email={{$json.email}}&value=1"
.
.
.
What is the error message (if any)?
[invalid syntax] for the first line. I tried with and without a ; ate the end. Not sure why it’s failing
Share the output returned by the last node
NO output. I removed the “const” part of the line to look like this:
{{ responseUrl="https://myserver.com/webhook/webhook-url-here" }}
And this works.… except that the URL appears at the top of the document and this line
<a href="{{$responseUrl}}?email={{$json.email}}&value=1"
Does not resulve $responseUrl.
Evidently something changed in the update process, but I’m not sure how to fix it.
L
Information on your n8n setup
- n8n version: 1.107.3
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker Compose
- Operating system: debian-12-bookworm-v20250513