Closed G1-Diep-Duong closed 6 months ago
@andrewbaldwin44 can you take a look?
Hi @G1-Diep-Duong I'm running your example and I'm not able to reproduce the issue. Do you know if you were using the old Locust UI prior to release 2.22.0? Maybe that would be why it used to work. Can you see if there are any error messages in the browser console? Can you reproduce the issue if you use the --legacy-ui
flag?
Hi @andrewbaldwin44,
This bug doesn't occur in the Old UI with the --legacy-ui
flag
Here is the video of this bug:
In this video, I used the example locust file for reproducing
https://github.com/locustio/locust/assets/19199172/f3fd3b00-1e85-420e-9a5d-1979c7364ffc
Run the example locust file in headless mode for generating HTML reports in both Modern and Old UI:
locust -f specs/locustfile.py -u 100 -r 5 -t 30s --html=dieplocust_modern.html --headless
locust -f specs/locustfile.py -u 100 -r 5 -t 30s --html=dieplocust_old.html --headless --legacy-ui
Notice that the modern report is blank:
Hey @G1-Diep-Duong, somehow I am still unable to reproduce this issue. I'm using the same locust file and parameters as you, I even tried on a Mac using Python version 3.9
The blank page you are seeing is because there is an error happening somewhere, I will try to add some error handling to prevent this from happening, however we should still try and investigate why this is happening.
Would you mind trying the following:
cd locust && pip install -e .
and then build the frontend in development mode: cd locust/webui
and then yarn dev:watch --mode=develop
. Then run the locust file and take a screenshot of the error. This would activate sourcemaps which would give us a better idea of where the issue is coming from.In the meantime I will keep trying to reproduce the error on my side :/
Hi @andrewbaldwin44 , for the option 1, here is the error message:
For Option 2, after installing locust in dev mode version: locust-2.23.2.dev10 The command locust show error when running:
Hmm this is quite strange. @cyberw have you ever seen anyone receiving that error message when installing locust in editable mode?
@G1-Diep-Duong Unfortunately the error message is not super helpful, my best guess is that it would have to do with your browser not supporting something. Can you share the version of Chrome that you are using?
I havent seen this issue myself and havent heard any more than what is in this ticket… maybe the pip version is very old? The version is generated by setuptools_scm..
Yeah that's what I was going to suggest, just try updating everything (pip, python, chrome, etc.). But I'm not sure if that would really count as solving the issue 😅
Hi @andrewbaldwin44 Here is the HTML file generated from Modern UI mode, hope it helps a bit for the investigation (Change extension .JSON to HTML) locust_modern_report.JSON
I am using latest Chrome on MacOS:
Prerequisites
Description
Run a test then open the HTML report -> Noticed that it is blank Note: This bug occurs from 2.22.0, and did not occur on 2.21.0
Command line
locust -f SimpleWeb.py -u 100 -r 10 -t 30s --html=samplelocust.html
Locustfile contents
Python version
3.9.18
Locust version
2.23.1
Operating system
macOS 14.2.1 (23C71)