Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N8N (cloud) UI freezes when opening HTTP or Code node #11878

Closed
weareturnone opened this issue Nov 25, 2024 · 10 comments
Closed

N8N (cloud) UI freezes when opening HTTP or Code node #11878

weareturnone opened this issue Nov 25, 2024 · 10 comments
Labels
in linear Issue or PR has been created in Linear for internal review Released

Comments

@weareturnone
Copy link

Bug Description

Whenever I open the HTTP node or a code node in a workflow that uses the DeepGram API, the UI freezes and becomes unresponsive. Then the browser times out the session and need to reload the page. This happens consistently and it does not matter which canvas I use.

To Reproduce

Create a HTTP request node with a POST request to the DeepGram API get a response...

Expected behavior

To be able to open the Node in the UI and interact with the UI

Operating System

n8n Cloud

n8n Version

1.68.0

Node.js Version

20.18.0

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Nov 25, 2024

Hey @weareturnone,

We have created an internal ticket to look into this which we will be tracking as "GHC-494"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Nov 25, 2024
@netroy
Copy link
Member

netroy commented Nov 25, 2024

Is this with data on the nodes, or is this happening for you even before you execute the workflow?

@weareturnone
Copy link
Author

Is this with data on the nodes, or is this happening for you even before you execute the workflow? @netroy

This only happens after a execution/ the HTTP and/ or code node have executed. Tried it in Chrome and Arc and Safari, also after restarting and updating the hosted n8n cloud instance as well as my mac.

@netroy
Copy link
Member

netroy commented Nov 25, 2024

Can you please check how much data the http request returns? This sounds like an issue of too much data being loaded into the UI.

Another thing you could try is to open the Node details view, switch to Table or JSON view, instead of the Schema view, and then try executing the workflow.
The schema view is currently not optimized for performance, but that will be fixed in the next release.

@weareturnone
Copy link
Author

Trying to check it but even when looking at the "executions" the UI freezes/ becomes unresponsive. Not sure how to otherwise find it. In the browser dev tools, "network" shows about 40kb of (disk cache) usage.

When waiting for a minute or two (if the browser doesn't kill the session), the node becomes responsive again but when you then click on a UI element, for example to check the Json output, it freezes again.

I guess it might be a RAM issue on N8N Cloud? I am on the starter plan and have no issues running locally. On the other side, this workflow was working fine in the weekend with the same input files.

For some context. The workflow gets a audio file from google drive and then sends the binary file to DeepGram API. The DeepGram HTTP node freezes after completion as well as a code node that processes the output (transcript) from DeepGram (does some formatting). Other nodes on the canvas stay responsive, even after multiple "loops" when the flow is triggered with 5+ audio files (200MB+ of audio files) -> Tried this out to see if that would crash everything or show some more info.

@netroy
Copy link
Member

netroy commented Nov 25, 2024

Would it be possible for you to create and share a minimal workflow with which you can consistently reproduce this issue? that would help significantly in narrowing down what the issue might be.

@MiloradFilipovic
Copy link
Contributor

MiloradFilipovic commented Nov 27, 2024

Hey @weareturnone
I tried reproducing this with a pretty large audio file (24mb) and can see that UI is slow but as @netroy pointed out it is most likely caused by loading large data in UI, especially using the schema view.
Can you try previewing the output in Table view? The trick here is to open HTTP node and switch to table view, once you switch it should remember your choice and always open in Table mode:

Screen.Recording.2024-11-27.at.14.15.33.mov

If Table view is usable for you here, then the problem indeed is in slow Schema view for large data, something we are already working on. I tried the same workflow with the new schema view and didn't see any lag there.

@weareturnone
Copy link
Author

weareturnone commented Dec 10, 2024 via email

@janober
Copy link
Member

janober commented Dec 19, 2024

Fix got released with [email protected]

@netroy
Copy link
Member

netroy commented Dec 20, 2024

@weareturnone Closing this as completed. But please let us know if the updates did not address the performance issue for you 🙏🏽

@netroy netroy closed this as completed Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review Released
Projects
None yet
Development

No branches or pull requests

5 participants