Skip to content

Replay Extension does not handle 403::unknown client #1709

Open

Description

@Jack-Gitter

Hi, I'm working with the Faye Client and StreamingExtension.Replay in order to subscribe to CDC events in salesforce. I'm utilizing the ReplayID extension so that in the event of the application having any downtime, we do not miss messages produced from salesforce. There is an edge case that is not caught by the JSForce replay extension. In the event that Salesforce terminates the connection due to network errors or autoscaling, JSForce attempts to send a long polling message to the server. The server will respond with 403::Unknown client error message because the server removed the clientId, and JSForce rightly attempts to reconnect. However, if the replayID that is held by the replay extension is expired, Salesforce will respond to this reconnection attempt with a 400 error, stating that the replayId is invalid. JSForce SHOULD attempt to resubscribe with either -1 or -2 replayId, but instead fails silently.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions