bayeux icon indicating copy to clipboard operation
bayeux copied to clipboard

Unknown error not get thrown for connect() call

Open we-zhang opened this issue 6 years ago • 0 comments

If there's some unknown error occurred during http request, in the connect() it will retry again and again. The error is not thrown.

2018-Jul-06 08:26:42:492 [N/A] 2018/07/06 13:26:42.492584 bayeux.go:215: Cannot connect to bayeux Unknown error: Post https://ap1.salesforce.com/cometd/38.0: EOF 2 2018-Jul-06 08:26:42:492 [N/A] 2018/07/06 13:26:42.492503 bayeux.go:118: Bad unrecoverable Call: Post https://ap1.salesforce.com/cometd/38.0: EOF 3 2018-Jul-06 08:26:42:492 [N/A] 2018/07/06 13:26:42.492648 bayeux.go:216: Trying again...

The error should be thrown so that the client side can catch it and do re-handshake/re-subscribe.

we-zhang avatar Jul 17 '18 21:07 we-zhang