Skip to content

Instantly share code, notes, and snippets.

@mattdrees
Created September 27, 2018 22:45
Show Gist options
  • Save mattdrees/014a004511288147f8cf9e6689824860 to your computer and use it in GitHub Desktop.
Save mattdrees/014a004511288147f8cf9e6689824860 to your computer and use it in GitHub Desktop.
A salesforce platform events / cometd debug log snippet showing problem with jsforce ReplayExtension
message from Salesforce: { ext: { replay: true, 'payload.format': true },
minimumVersion: '1.0',
clientId: 'l0s1u9zof06ofqqkdkk92jldqgmk',
supportedConnectionTypes: [ 'long-polling' ],
channel: '/meta/handshake',
id: '1',
version: '1.0',
successful: true } +396ms
message to Salesforce: { channel: '/meta/connect',
clientId: 'l0s1u9zof06ofqqkdkk92jldqgmk',
connectionType: 'long-polling',
id: '2' } +3ms
message to Salesforce: { channel: '/meta/subscribe',
clientId: 'l0s1u9zof06ofqqkdkk92jldqgmk',
subscription: '/event/Account_Change__e',
id: '3',
ext: { replay: { '/event/Account_Change__e': '-2' } } } +0ms
message to Salesforce: { channel: '/meta/subscribe',
clientId: 'l0s1u9zof06ofqqkdkk92jldqgmk',
subscription: '/event/Contact_Change__e',
id: '4',
ext: { replay: { '/event/Account_Change__e': '-2' } } } +1ms
message from Salesforce: { clientId: 'l0s1u9zof06ofqqkdkk92jldqgmk',
advice: { interval: 0, timeout: 110000, reconnect: 'retry' },
channel: '/meta/connect',
id: '2',
successful: true } +179ms
message from Salesforce: { clientId: 'l0s1u9zof06ofqqkdkk92jldqgmk',
channel: '/meta/subscribe',
id: '3',
subscription: '/event/Account_Change__e',
successful: true } +1ms
message from Salesforce: { clientId: 'l0s1u9zof06ofqqkdkk92jldqgmk',
channel: '/meta/subscribe',
id: '4',
subscription: '/event/Contact_Change__e',
error: '400::The replayId for channel {/event/Contact_Change__e} wasn\'t found using the provided replay ID map {{/event/Account_Change__e=-2}}. Ensure that the channel name you provided in the replay map is valid and matches the channel name used for subscribing.',
successful: false } +0ms
@mattdrees
Copy link
Author

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