-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling network connection error with SeverPush active #102
Comments
Can you tell some simple steps to reproduce the issue? |
What action did you perform in order to provoke ERR_CONNECTION_RESET error? |
BTW... which RAP version is used for your testing? |
I'm using 3.24.0-M1 version For testing I do:
I have done some tests, with PushSession active or not, and watching the error on the browser console I see the error is not always the same, the most commons are: and sometimes also the error above. To do a better test, I also have increase 'ServerPush.js' retry time to prevent error message box from popping up too soon Here the modified code in 'ServerPush.js' '_handleError'
|
Could you try tomorrow with the RAP nightly build. I fixed the other two issues reported by you and I think that they are related. |
In "Request.js" method "_sendWithFetch" there is a ".catch" only in the first ".then" command Should be added ".catch" after every ".then" to prevent uncaught errors |
I don't think this is needed. The outer ".catch" should catch all the errors thrown internally by "fetch" and ".then". More over the second Promise is for getting the response text which should never throw. |
I suppose that not all exceptions are handled when using 'Request_sendWithFetch' , I found problems when 'ServerPush' is active,
sometimes retry is working and sometimes no.
I have modified "Request_sendWithFetch" adding try .. catch inside entire function and inside every 'then' and it seems to work fine.
This is, for example, an uncaught error:
The text was updated successfully, but these errors were encountered: