forcedotcom / EMP-Connector

A simplified cometd connector for Enterprise Messaging Platform
BSD 3-Clause "New" or "Revised" License
185 stars 243 forks source link

Error subscribing when session expires. #39

Closed hnguyen0971 closed 6 years ago

hnguyen0971 commented 6 years ago

I get the following error when I delete the AuthSession row associated with the app to mimic an access token expiring. I tested this with access token and login in with a user and password. The following error happens like 5 minutes after deleting the AuthSession. error=400::The replayId for channel {/topic/User_Provision_Updates} wasn't found using the provided replay ID map {{}}. Ensure that the channel name you provided in the replay map is valid and matches the channel name used for subscribing., successful=false}]

hnguyen0971 commented 6 years ago

I got it to work by removing line 252 in EmpConnector but not sure if this will break something else. //replay.clear();

choidea commented 6 years ago

I met this issue too.

we-zhang commented 6 years ago

Same issue when using streaming API...anything happened at SF side? Before today, my code works fine...

pbn-sfdc commented 6 years ago

Sorry, fixed in the 98bce92f001ede1a3df61047e1011dc4ae728a46.