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

Render template timeout #1315

Open
Perfect-Web opened this issue Mar 3, 2024 · 3 comments
Open

Render template timeout #1315

Perfect-Web opened this issue Mar 3, 2024 · 3 comments

Comments

@Perfect-Web
Copy link

Perfect-Web commented Mar 3, 2024

Describe the bug

If you try to run a template that uses the expand function or something else that is equally intensive inside the developer tools, it times out after 3s.
On the other hand, if you run the same template inside the node, it causes a memory leak which eventually crashes the core.

To Reproduce

No response

Expected behavior

To timeout after x seconds preventing memory leaks

Screenshots

No response

Example Flow

No response

Environment Information

Version:

Home Assistant version:
Companion version:

Node-RED version:
Docker: no
Add-on: no

Node.js version:
OS:

Additional context

No response

Copy link
Contributor

github-actions bot commented May 3, 2024

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label May 3, 2024
@zachowj zachowj removed the Stale label May 4, 2024
@zachowj
Copy link
Owner

zachowj commented May 9, 2024

There's no way to define a timeout when using the REST API to render a template.

https://github.com/home-assistant/core/blob/19c26b79afb08268286c5fdc93d0d00a8c6d52e2/homeassistant/components/api/__init__.py#L441-L457

The node would have to be refactored to use the websocket endpoint if a timeout needs to be introduced.

Copy link
Contributor

github-actions bot commented Jul 8, 2024

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants