function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marc Romeu BelMarc Romeu Bel 

Workbench - Unable to Subscribe to Streaming Push Topic

Hi,

I am getting started with the Streaming API but I haven't been able to subscribe to any Streaming Push Topic.
I have followed the steps suggested by the Trailhead tutorial: https://developer.salesforce.com/trailhead/api_basics/api_basics_streaming
When I click the Subscribe button, nothing happens. The channel section appears Connected/Disconnected randomly.

I have tried to debug the issue using my browser console, and the only message received when trying to subscribe is:
uncaught exception: Illegal state: already disconnected
The message persists either when the channel status is Connected/Disconnected.

The subscription has failed in any browser (Chrome, Firefox, IE).

Any hint? Thanks!!!!!!
Best Answer chosen by Marc Romeu Bel
David VillegasDavid Villegas
I also hit this problem, until I found this: https://github.com/ryanbrainard/forceworkbench/issues/687

It seems version 37.0 of the API doesn't work well with streaming. I also run into this from my own jsforce-based client. The solution is to switch to version 36.0 of the API.

All Answers

David VillegasDavid Villegas
I also hit this problem, until I found this: https://github.com/ryanbrainard/forceworkbench/issues/687

It seems version 37.0 of the API doesn't work well with streaming. I also run into this from my own jsforce-based client. The solution is to switch to version 36.0 of the API.
This was selected as the best answer
Marc Romeu BelMarc Romeu Bel
I switched to v36 and it seems to be working fine now. Thanks for your help David!
Jacob HutchingsJacob Hutchings
Very useful thank you!
Jeff FarnsworthJeff Farnsworth
Does anyone know of a solution to this that allows for the Replay of PushTopics?  That was a needed new feature for the Summer 16 release to make PushTopic streaming durable - but it requires v37.  The documentation shows Workbench doing this, but it still doesn't work.
Rakesh S 48Rakesh S 48
Version 36 doesn't have replay option. And unable to subscribe to pushtopic for version 37 and above. Any work around?  Thanks.