I get a strange error when I try to run a workflow from outside.
When tested in the editor, everything works fine.
As soon as I try to check the workflow through the web widget, I get an error.
<script type="module">
import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/dist/chat.bundle.es.js';
createChat(
{
webhookUrl: 'https://test.me/webhook/b2c99af9-7f39-48b0-b6bf-ce267739fc95/chat',
initialMessages: [
'Hi there! π',
'My name is Alis. How can I assist you today?'
],
enableStreaming: true
}
)
</script>
I was able to partially reproduce the issue, as I got some errors with the βSchema Parserβ,
However surprisingly when I turned off streaming everything worked perfectly!
It looks like there is an issue with streaming or how itβs being handled..
I noticed youβre hitting an error in the Parse Data node when enabling streaming. I believe Iβve encountered this beforeβit seems that when streaming is active, the node loses its reference to the previous User Schema node.
A simple fix that usually works is to βhardcodeβ the schema instead of referencing it:
Copy the JSON code from inside your User Schema node.
Open the Parse Data node.
Paste that JSON directly into the Input Schema field (replacing the expression/variable).
This stops the node from trying to βlook backβ while streaming. Hope this helps get your workflow running smoothly!