• Richa williams
  • NEWBIE
  • 0 Points
  • Member since 2018
  • developer
  • https://tekslate.com/

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi All,

Am very new to API.In my salesforce org, somebody implemented the API. I don't know whether its REST/SOAP.

Now I want to do some changes in that. Kindly let me know, where I to find the respective API details in my Org.

 
We are using Salesforce Streaming API to receive events based on Push topics and for platform events. Initially at subscription Streaming API works fine listening and delivering events. However after a period of around 12-24 Hours the channel gets disconnected. At this point the last incoming message from salesforce was :

{ channel: '/meta/disconnect' }
incoming
{ clientId: '5rw1bxn4jzyed3vhbcjnpkwb2fsd',
advice: { interval: 0, reconnect: 'none' },
channel: '/meta/connect',
id: 'k1',
error: '403::Unknown client',
successful: false }

With this error the underlying Faye client believes there should not be any reconnection and stops listening to channel (No more connection handshake). From the documentation we understand the reliability of message due to load, but complete disconnection is unexpected.

Background : We are using Node JS npm module https://github.com/kevinohara80/nforce for working with Streaming APIs. We were using Salesforce API version 34 earlier, later with the need to support Platform Events we planed to use the API versions 37 and above(41). However only with new apiversion we are seeing this disconnection whereas the earlier 34 version is still working fine. Also with version 34 many events were not generated due to unsupported fields like address etc.