• Valery
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hello,

I have a very basic setup with my SFDC custom page listening for updates.

For testing purposes I made the script as simple as possible:

 

$.cometd.subscribe('/topic/allcontacts', function(message) {
            var idJSON = JSON.stringify(message.data.sobject.Id);
            alert('idJSON = ' + idJSON);
}

In 95% cases page gets the updates as expected, but sometimes it doesn't. 

For my tests I was adding an email to Contact objects using WebServices API, the very same action fires notification almost always, but once in 20 times or so it doesn't.

Has anybody experienced the same problem?

 

Thanks,

Valery 

  • December 16, 2011
  • Like
  • 0

Hello, 

I'm having the dullest problem possible.
I believe everything is set up correctly.
I use Developer's SFDC account, Streaming API is enabled (I verified checkbox is on) , I believe I'm on API version 23 (this what generated Enterprise API says).

I have set up the simplest  PushTopic from examples - AllAccounts("Select Id, Name from Account").

The Pushtopic is visible in Workbench.

My problem is that on create/update to Accounts I do not get any notification messages. Nothing at all
I tried Workbench, Apex Page and Java. No errors and no notifications.

See below Java output as example.

 

 

Running streaming client example....
Login successful!
Endpoint: https://na9-api.salesforce.com
Sessionid=00DE0000000K86D!ARoAQB9_iG.n0vBUOJX4XbOGheKfTQEWHySmOMTS55a5Hj9kxIwZXlHZL4ebBTfpod7hg4jVa.aIyQF.MZaGzMXZRFAI7K1C
Waiting for handshake
[CHANNEL:META_HANDSHAKE]: {"id":"1","minimumVersion":"1.0","supportedConnectionTypes":["long-polling"],"successful":true,"channel":"/meta/handshake","clientId":"21sasoutiukcud14fab90nt0gou","version":"1.0"}
[CHANNEL:META_CONNECT]: {"id":"2","successful":true,"advice":{"interval":0,"reconnect":"retry","timeout":110000},"channel":"/meta/connect"}
Subscribing for channel: /topic/AllAccounts
Waiting for streamed data from your organization ...
[CHANNEL:META_SUBSCRIBE]: {"id":"4","subscription":"/topic/AllAccounts","successful":true,"channel":"/meta/subscribe"}
....[CHANNEL:META_CONNECT]: {"id":"3","successful":true,"channel":"/meta/connect"}

 

 What am I missing?

  • October 29, 2011
  • Like
  • 0

Hello, 

I'm having the dullest problem possible.
I believe everything is set up correctly.
I use Developer's SFDC account, Streaming API is enabled (I verified checkbox is on) , I believe I'm on API version 23 (this what generated Enterprise API says).

I have set up the simplest  PushTopic from examples - AllAccounts("Select Id, Name from Account").

The Pushtopic is visible in Workbench.

My problem is that on create/update to Accounts I do not get any notification messages. Nothing at all
I tried Workbench, Apex Page and Java. No errors and no notifications.

See below Java output as example.

 

 

Running streaming client example....
Login successful!
Endpoint: https://na9-api.salesforce.com
Sessionid=00DE0000000K86D!ARoAQB9_iG.n0vBUOJX4XbOGheKfTQEWHySmOMTS55a5Hj9kxIwZXlHZL4ebBTfpod7hg4jVa.aIyQF.MZaGzMXZRFAI7K1C
Waiting for handshake
[CHANNEL:META_HANDSHAKE]: {"id":"1","minimumVersion":"1.0","supportedConnectionTypes":["long-polling"],"successful":true,"channel":"/meta/handshake","clientId":"21sasoutiukcud14fab90nt0gou","version":"1.0"}
[CHANNEL:META_CONNECT]: {"id":"2","successful":true,"advice":{"interval":0,"reconnect":"retry","timeout":110000},"channel":"/meta/connect"}
Subscribing for channel: /topic/AllAccounts
Waiting for streamed data from your organization ...
[CHANNEL:META_SUBSCRIBE]: {"id":"4","subscription":"/topic/AllAccounts","successful":true,"channel":"/meta/subscribe"}
....[CHANNEL:META_CONNECT]: {"id":"3","successful":true,"channel":"/meta/connect"}

 

 What am I missing?

  • October 29, 2011
  • Like
  • 0