You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using method await socketlib.system.executeAsGM('showOptionBox', inputs, activeMods);
to call the Option window for other player/GM.
I got the result:
Uncaught (in promise) InternalError: too much recursion
be is-binary.js:3
Ee is-binary.js:20
Ae is-binary.js:36
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
Ae is-binary.js:45
This happens only if I set target of an action in Foundry.
The text was updated successfully, but these errors were encountered:
One limitation of socketlib is, that you can only send data to other clients that can be serialized to JSON. If you try to send a datastructure that references itself at some point, the json serializer gets stuck in an infinite recursion and eventually bails. I suppose that's what is happening here. What are the contents of the variables inputs and activeMods?
While activeMods is empty, inputs differs depending who call it.
In problematic case, it's big nested (tree-like) object.
I made yesterday workaround - the recipient only required a few fields from input, so I have filtered it and it helped.
(The recursion error was displayed on Firefox; on Chrome it was sth about too big thread stack or sth similar)
Hi,
I'm using method
await socketlib.system.executeAsGM('showOptionBox', inputs, activeMods);
to call the Option window for other player/GM.
I got the result:
This happens only if I set target of an action in Foundry.
The text was updated successfully, but these errors were encountered: