Skip to content

Websocket framing issue? #1

@benlongo

Description

@benlongo

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)```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions