Welcome Guest, Not a member yet? Register   Sign In
Persistent Codeigniter 4 error 500 and cancelled Ajax calls when testing with cypress
#5

Memory usage:
I don't have access now to install the memory monitor, only until next week. But I think this Graffanna could* be accurate (I put in PDF): https://docdro.id/GXtEqtr

It depends on how many users you expect to have online:
Could be 200 people

Are those 486 request on one page load?
No, those requests are in 5 pages average.

If so do you have cache enabled
Yes, but I don't know how it was done - I will ask next week once the guy is back.

Do image fails to load as well:
They never fail.

Only PHP files?
Php + Javascript.
Note: This particular problem came from datatables.net library when we use ajax to query the backend, we are not using server side rendering. But that occurs on other parts.

Do you need to query the database for everything?
Not in general but in this particular case I found fetches a lot of stuff from multiple tables to render on the database


Depending on how Cypress does thing it clicks ....
This fails at the beginning of the test. I tested this at 10pm when nobody was working on it, and this is a test server (we didn't launch the project yet). Cypress did 82 clicks in 108 seconds. Let's say in parallel we do this 20x (20 tests at the same time), we usually get 5 of them as failures, but they not always fail at the beginning.
Reply


Messages In This Thread
RE: Persistent Codeigniter 4 error 500 and cancelled Ajax calls when testing with cypress - by danielcast - 07-30-2020, 09:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB