Re: Salesforce Platform Events Subscription Retries

2020-12-08 Thread Andy Stebbing
Hi, That's correct, I have the route running normally with the firewall open, but then I close the firewall then I issue a route restart using the control bus. That's when the salesforce exception happens and if i open the firewall it refuses to attempt a resubscription even though I can clearly s

Re: Salesforce Platform Events Subscription Retries

2020-12-08 Thread Zoran Regvart
Hi Andy, I think I didn't understand your previous email correctly. Just to try to understand better is this how you tested: you blocked connections on the firewall, waited for the failure to establish connection and then unblocked on the firewall to see that the connection was reestablished but t

Re: Salesforce Platform Events Subscription Retries

2020-12-07 Thread Andy Stebbing
Hi, I had the firewall closed during the restart, that's why the connection problems occurred when I issued a control bus restart of the route. After it fails I opened the firewall rule and I could see a new HTTP connection but the subscription part doesn't retry as it just gives up. Since I can't

Re: Salesforce Platform Events Subscription Retries

2020-12-07 Thread Zoran Regvart
Hi Andy, just to double check, you did lift the firewall rule to allow the traffic? The `Connection refused` error points to firewall dropping packets. zoran On Sun, Dec 6, 2020 at 11:52 PM Andy Stebbing wrote: > > I did try the restartClient() call at the position you mentioned, but > it didn't

Re: Salesforce Platform Events Subscription Retries

2020-12-06 Thread Andy Stebbing
I did try the restartClient() call at the position you mentioned, but it didn't seem to make any difference. The subscription fails and never retries afterwards, the exception that occurs is as follows: Error subscribing to event/LMSUser__e: Connection refused. Caused by: [org.apache.camel.compone

Re: Salesforce Platform Events Subscription Retries

2020-12-03 Thread Andy Stebbing
I'll give it a try, just give me a bit of time and I'll let you know. cheers andy On Fri, Dec 4, 2020 at 9:07 AM Zoran Regvart wrote: > > Hi Andy, > that helps a lot, thanks! I *think* a `restartClient()` invocation > might help if added here: > > https://github.com/apache/camel/blob/b140279d823

Re: Salesforce Platform Events Subscription Retries

2020-12-03 Thread Zoran Regvart
Hi Andy, that helps a lot, thanks! I *think* a `restartClient()` invocation might help if added here: https://github.com/apache/camel/blob/b140279d8235ae1aa7cf5010c0bc4945a529fe38/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/st

Re: Salesforce Platform Events Subscription Retries

2020-12-03 Thread Andy Stebbing
The only way I could replicate the issue or at least see that a connection is established but the subscription doesnt resubscribe. I did the following: I used UFW to control the network connection so I can block it. For initially starting the route I have the following UFW rule to allow all connec

Re: Salesforce Platform Events Subscription Retries

2020-11-30 Thread Andy Stebbing
Hi, I did try it out with 3.7.0-SNAPSHOT but the outcome was the same. I'll put in a JIRA ticket and I'll provide details on how I was able to replicate the issue. I'll also post it on here. cheers andy On Mon, Nov 30, 2020 at 7:59 PM Zoran Regvart wrote: > > Hi Andy, > sounds like an issue we

RE: Salesforce Platform Events Subscription Retries

2020-11-30 Thread Ajmera, Hemang C
t: Re: Salesforce Platform Events Subscription Retries EXTERNAL SENDER: Do not click any links or open any attachments unless you trust the sender and know the content is safe. EXPÉDITEUR EXTERNE:Ne cliquez sur aucun lien et n’ouvrez aucune pièce jointe à moins qu’ils ne proviennent d’un expéd

Re: Salesforce Platform Events Subscription Retries

2020-11-30 Thread Zoran Regvart
Hi Andy, sounds like an issue we would not encounter when developing/running integration tests. We have a number of issues (some of them have been fixed) relating to streaming/push APIs with Salesforce. Perhaps if you find that the recent versions did not fix your issue you could contribute the lo

Re: Salesforce Platform Events Subscription Retries

2020-11-28 Thread Andy Stebbing
ok I'll try 3.6 and 3.7 snapshot and I'll let you know. If the issue is still there, I'll create a ticket and will include all the steps I took to replicate the issue. Many thanks for looking into this. Cheers andy On Sat, Nov 28, 2020 at 7:36 PM Claus Ibsen wrote: > > Hi > > There are some fix

Re: Salesforce Platform Events Subscription Retries

2020-11-28 Thread Claus Ibsen
Hi There are some fixes to the camel-salesforce component coming in 3.7. But they are afair not so related to connectivity. But according to your description then restarting the route fixes it. Can you create a JIRA ticket. And if possible try with 3.6.0 or 3.7.0-SNAPSHOT if you can reproduce it

Re: Salesforce Platform Events Subscription Retries

2020-11-27 Thread Andy Stebbing
I'm using 3.5. thanks On Fri, Nov 27, 2020 at 4:16 PM Claus Ibsen wrote: > > Hi > > What version of Camel are you using? > > On Fri, Nov 27, 2020 at 4:14 AM Andy Stebbing > wrote: > > > > Hi There, > > I'm using the salesforce component for receiving platform events and > > have been using it

Re: Salesforce Platform Events Subscription Retries

2020-11-26 Thread Claus Ibsen
Hi What version of Camel are you using? On Fri, Nov 27, 2020 at 4:14 AM Andy Stebbing wrote: > > Hi There, > I'm using the salesforce component for receiving platform events and > have been using it for a few months and is generally quite stable. > > My question is around the durability of the

Salesforce Platform Events Subscription Retries

2020-11-26 Thread Andy Stebbing
Hi There, I'm using the salesforce component for receiving platform events and have been using it for a few months and is generally quite stable. My question is around the durability of the subscription, for normal network dropouts or timeouts etc, it handles it very well, but recently Salesforce