You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replay Extension does not handle 403::unknown client #1709
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