-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
[2025.06.03 - 13:38:19.767][warn][system] Could not serialize event {
component: 'scenes',
event: 'get',
args: [
Scene {
_id: '683ebfd871a8783579d88f0e',
name: 'Notaus',
makros: [Array],
timestamps: [Object],
labels: [Getter/Setter],
triggers: [],
visible: true,
icon: null,
inputs: [],
states: [Object]
}
]
}
DataCloneError: #<Object> could not be cloned.
at new DOMException (node:internal/per_context/domexception:53:5)
at BroadcastChannel.postMessage (node:internal/worker/io:427:23)
at Events.emit (/home/marc/projects/OpenHaus/backend/system/component/class.events.js:86:29)
at Object.get (/home/marc/projects/OpenHaus/backend/system/component/class.component.js:75:33)
at Proxy.slice (<anonymous>)
at /home/marc/projects/OpenHaus/backend/routes/rest-handler.js:113:40
at Layer.handle [as handle_request] (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/layer.js:95:5)
at next (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/route.js:119:3)
at Layer.handle [as handle_request] (/home/marc/projects/OpenHaus/backend/node_modules/express/lib/router/layer.js:95:5)
item.timestamps
& item.states
are Proxies.
Because of that, the structuredClone
fails.