Skip to content

TypeError: encodedReplayId.readBigUInt64BE is not a function #50

@alice-watershed

Description

@alice-watershed

We have a long-running Salesforce Pub/Sub connection. Sometimes a few hours into the connection we suddenly start getting error messages stating “TypeError: encodedReplayId.readBigUInt64BE is not a function”.

This is a message that is being received on the callbackType of error, although reading through the code it seems like it’s a regular event message that gets rerouted in the pubsub-api-client code to the error callbackType because it can’t parse the replayId. I can’t deterministically reproduce it (I’ve opened a separate Salesforce Pub/Sub connection to request the exact same events and it works fine). It seems to happen repeatedly for a period of time, and then stops happening for a period of time, and repeats.

image

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