Sowjanya Mudimala
2018-10-03 20:17:15 UTC
version: 2.23.0
I have a stand alone java app that uses camel to subscribe to
salesforce platform event.
I see frequent disconnects from salesforce causing the subscription
client to fail at some point.
attached the debug logs (1.txt).
I am hitting the same issue with both AuthenticationType.USERNAME_PASSWORD and
AuthenticationType.JWT.
doesn't seem like the camel-salesforce component retries on below
message ( when advice is reconnect=none).
[CHANNEL:META_CONNECT]: {clientId=4ax18g474mdxneef13qtpln3p55cw,
advice=(reconnect=none{reconnect=none, interval=0},
channel=/meta/connect, id=15, error=403::Unknown client,
successful=false}
Found https://developer.salesforce.com/forums/?id=906F0000000ApCYIA0.
Can we follow the suggestion " whenever 403 error occurs you will be
getting connection broken. SO do one thing add listener
metaUnSucessfulListener.
Once you recieve the error, the method will get called and in this
method first unsubsicribe the existing insance of cometd, create fresh
instance."
Note that I am hitting this issue even after disabling salesforce
lightening mobile alerts.
few other relevant links:
https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/streaming_handling_errors.htm
Thanks,
Sowjanya.
I have a stand alone java app that uses camel to subscribe to
salesforce platform event.
I see frequent disconnects from salesforce causing the subscription
client to fail at some point.
attached the debug logs (1.txt).
I am hitting the same issue with both AuthenticationType.USERNAME_PASSWORD and
AuthenticationType.JWT.
doesn't seem like the camel-salesforce component retries on below
message ( when advice is reconnect=none).
[CHANNEL:META_CONNECT]: {clientId=4ax18g474mdxneef13qtpln3p55cw,
advice=(reconnect=none{reconnect=none, interval=0},
channel=/meta/connect, id=15, error=403::Unknown client,
successful=false}
Found https://developer.salesforce.com/forums/?id=906F0000000ApCYIA0.
Can we follow the suggestion " whenever 403 error occurs you will be
getting connection broken. SO do one thing add listener
metaUnSucessfulListener.
Once you recieve the error, the method will get called and in this
method first unsubsicribe the existing insance of cometd, create fresh
instance."
Note that I am hitting this issue even after disabling salesforce
lightening mobile alerts.
few other relevant links:
https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/streaming_handling_errors.htm
Thanks,
Sowjanya.