Skylar-Tech / node-red-contrib-matrix-chat

Matrix chat server support for Node-RED
GNU General Public License v3.0
31 stars 10 forks source link

Can't receive messenges in Node Red, because - "Context global contains a circular reference that cannot be persisted" #116

Open ThomasKlesse opened 6 days ago

ThomasKlesse commented 6 days ago

Hi,

I'm confused. I've searched many threads but haven't found an answer or a solution. Sending messages to a Matrix room basically works fine. But when receiving messages I get a "timeout" error that I don't understand: "Context global contains a circular reference that cannot be persisted"

Do I need to change the ContextStorage option in Node Red and if so, how?

Currently I use this option: ... contextStorage: { default: { module: 'localfilesystem' } }, ...

Thanks a lot Thomas

skylord123 commented 5 days ago

Can you try out the dev branch and see if this issue persists? v0.8.0 should resolve this issue. We now delete the matrix global variable before shutdown to prevent it from persisting.

Another way to fix this on the older version is to disable global access to the matrix client from the server config but if you are using that in function nodes this is not possible without breaking that functionality.