Describe the problem/error/question
Hi,
I encountered a strange behavior where expressions “added” extra trailing space when formatting a string. More specifically:
As shown in the SS, expression {{ `${$('init').item.json.favicon_dir}/default_favicon.png` }} generated an extra trailing space. I also tried {{ ‘/data/shared/favicons/default_favicon.png’ }} and {{ `/data/shared/favicons/default_favicon.png` }}, both resulted in extra trailing space in the output. If I use “Fixed” value, ie /data/shared/favicons/default_favicon.png, then the output without does not contain any extra trailing spaces.
What is the error message (if any)?
N/A
Please share your workflow
Share the output returned by the last node
[
{
“exitCode”: 0,
“stderr”: “”,
“stdout”: “”,
“faviconOutput”: “/data/shared/favicons/feed_id_undefined.ico”,
“defaultIcon”: "/data/shared/favicons/default_favicon.png "
}
]
Information on your n8n setup
- n8n version: 2.1.5
- Database (default: SQLite): Postgresql
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system:


