I think the json payload could be getting spread out over multiple frames. If the json payload is that long though we probably don't care about it's contents so we may be able to get away with ditching frames that give us this error.
roam-quick-capture-cli/cli.js:45
const payload = JSON.parse(event[0].response.payloadData)
^
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at main (/Users/ben/projects/roam-quick-capture-cli/cli.js:45:30)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)```
I think the json payload could be getting spread out over multiple frames. If the json payload is that long though we probably don't care about it's contents so we may be able to get away with ditching frames that give us this error.