At some moment SendSync returns an empty string instead of the result.
In my case, it happens right after calling another package with C bindings (https://github.com/gographics/imagick)
My code:
data := JSWorker.SendSync(opts)
with some probability, data contains empty string instead of a result. looks like a goroutines multithread issue.