Skip to content
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

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

Open
jankrnavek opened this issue Oct 19, 2023 · 5 comments

Comments

@jankrnavek
Copy link

jankrnavek commented Oct 19, 2023

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
Copy link
Contributor

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

@jankrnavek
Copy link
Author

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

@jankrnavek
Copy link
Author

@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
Copy link
Contributor

@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
Copy link
Author

I did some research and came up with the following.

  • GET requests are appears randomly until the first succesfull request fetching data from the backend.
  • requests are canceled by frontend (w2ui object)

Please @vitmalina look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants