Unusual behaviour for throw new error function, When throwing json object , the response only contain subpart after ":" (Colon) . returning

Example workflow

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hi and welcome. It appears that the error handler is splitting on colon ‘:’.
In my testing, there was no way to escape the colon. However, as a workaround, you can replace with unicode like this: throw new Error(JSON.stringify(testObject).replace(/:/g,"∶"))

image

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