ux icon indicating copy to clipboard operation
ux copied to clipboard

[LiveComponent] Error handling on Networking Errors

Open FabianKoehnen opened this issue 1 year ago • 8 comments

I recently had an failure where in a Live Component Form on a Field validation sometimes there was a net::ERR_HTTP2_PROTOCOL_ERROR which caused the Js to crash (No more field validation or button interaction until reload).

I later also tried how a net::ERR_NETWORK_CHANGED gets handled, which caused the same crash.

grafik

Maybe it might be useful if there would be some recovery or retry method for Faulty Responses so no reload is necessary to be able to interact with the page again

FabianKoehnen avatar Jul 13 '24 15:07 FabianKoehnen

You can listen to several events to catch/handle errors, in Symfony UX LiveComponent or directly in stimulus... ... but there is clearly something to improve here in term of DX

Maybe can you see with @YummYume who started some work about this (https://github.com/symfony/ux/issues/1891 and following) ?

smnandre avatar Jul 13 '24 15:07 smnandre

Thanks for the hints i will look into it

FabianKoehnen avatar Jul 15 '24 08:07 FabianKoehnen

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot avatar Jan 17 '25 12:01 carsonbot

Hello? This issue is about to be closed if nobody replies.

carsonbot avatar Jan 31 '25 12:01 carsonbot

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

carsonbot avatar Feb 14 '25 12:02 carsonbot

It's still very much relevant

YummYume avatar Feb 14 '25 19:02 YummYume

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot avatar Aug 15 '25 12:08 carsonbot

Relevant

norkunas avatar Aug 18 '25 05:08 norkunas