Workflow does not contain a node with the name of "undefined"

Hi everyone!

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>

Hi @romanowlex,

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..

Hi @mohamed3nan,

Indeed, when I turned off the streaming, I also lost the error.

But I would like it to work with her, I don’t understand why this is happening and how to fix it …

I have another option that works with streaming, but it’s longer.

are you still having problems?, i tried your workflow and it works fine

Hi @Sandiyasa,

Yes, I still have an error with enableStreaming

n8n version: 1.121.2, self-hosted

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:

  1. Copy the JSON code from inside your User Schema node.

  2. Open the Parse Data node.

  3. 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!

Thank you @Sandiyasa Good point! But I decided to give up streaming, it’s unstable and doesn’t work logically.

1 Like

Even if you try with other model?

Tools Agent + openai/gpt-4o-mini fails with but it works when switching to openai/gpt-4o?

Eager to try myself when I get to PC ..

2 Likes

I tried it with the model gpt-4o and it worked )

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