vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.64k stars 730 forks source link

w2ui 2.0 grid - redundant GET request to the server that is aborted (canceled) #2457

Open jankrnavek opened 10 months ago

jankrnavek commented 10 months ago

When a new grid is created (initiated), send two requests to the server. The first one is aborted (canceled), and the second one successfully downloads records from the server. I mean the first one is a bug. It happenes randomly and I am convicted that my backend is ok. (django-ninja)

WenSheng-tw commented 10 months ago

I have been post Pull request to fix it, But be cancel.

jankrnavek commented 10 months ago

Thanks for the info. I would like the author to solve it in the future.

jankrnavek commented 6 months ago

@WenSheng-tw
Can you tell me the reason of the redudant error requests? On backend site I see a lot of error messages like "- Broken pipe from ('127.0.0.1', 54816)"

WenSheng-tw commented 6 months ago

@jankrnavek I don't know why the error occurs while receiving data from backend (php). find: e.finish())}}}requestComplete(e,t,i,s,l){let r=e.error??!1, fix to: e.finish())}}}requestComplete(e,t,i,s,l) {if(typeof(e)!='object'){return;}let r=e.error??! 1,

jankrnavek commented 6 months ago

I did some research and came up with the following.

Please @vitmalina look at it.