-
Notifications
You must be signed in to change notification settings - Fork 3k
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
locust/webui/dist/index.html script errors. #2753
Comments
Hi @spatel-glsauto ! Can you try opening it in private mode to ensure it is not related to your browser? Do you have any extensions installed? Is there anything in Locust's log? |
This is the change that I made to get the browser to show up. (See the highlighted line):
[cid:afb20318-115d-4b8d-8853-b4ad7e10dbb0]
Per your request I reverted the change in locust/webui/dist/index.html and executed the browser in private/incognito mode:
[cid:4a3de093-fb0f-4505-b4a3-8874d07a9a5c]
I set the log level to DEBUG and attached it. As the bug is in the html file, I wouldn't expect to see anything in the log. There are no extensions installed. Let me know if you have any other questions.
Thanks for the quick response,
Sanjit Patel
…________________________________
From: Lars Holmberg ***@***.***>
Sent: Friday, June 7, 2024 11:09 AM
To: locustio/locust ***@***.***>
Cc: Sanjit Patel ***@***.***>; Mention ***@***.***>
Subject: Re: [locustio/locust] locust/webui/dist/index.html script errors. (Issue #2753)
This Message Is From an External Sender
This message came from outside your organization.
Hi @spatel-glsauto<https://urldefense.com/v3/__https://github.com/spatel-glsauto__;!!ARnBl9mN!ynS6YZsA59TXhtoGXpHuJ0JUfC72ZlTHCEFecI1rEXZ7ef05bjzC4wOfUeC57QZdOmGctvgLGZxDK0EctiYm26A$> ! Can you try opening it in private mode to ensure it is not related to your browser? Do you have any extensions installed? Is there anything in Locust's log?
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/locustio/locust/issues/2753*issuecomment-2155036069__;Iw!!ARnBl9mN!ynS6YZsA59TXhtoGXpHuJ0JUfC72ZlTHCEFecI1rEXZ7ef05bjzC4wOfUeC57QZdOmGctvgLGZxDK0EcJ7b8XRI$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/A2WSEYL7ZQX7WKGUPANW2STZGHEK3AVCNFSM6AAAAABI6WAYJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGAZTMMBWHE__;!!ARnBl9mN!ynS6YZsA59TXhtoGXpHuJ0JUfC72ZlTHCEFecI1rEXZ7ef05bjzC4wOfUeC57QZdOmGctvgLGZxDK0EcxilSTYM$>.
You are receiving this because you were mentioned.
|
Attached the image files that didn't get copied from the email reply: Browser executed in incognito mode: The requested locust logs: |
@andrewbaldwin44 Can you have a look? |
Some digging on Stackoverflow revealed that it may be a Windows issue We've pushed a fix, let us know if this fixes your issue! |
Duplicates #2633 |
@spatel-glsauto can you re-test with latest and greatest to see if your issue is resolved? (pip install -U --pre locust) |
Prerequisites
Description
I'm on version 2.28.0. When I run locust.exe, I open up localhost:8089 in chrome. The page appears blank. Opening developer tools, I saw the following:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
a. Modifying the mime type from "module" to "application/javascript" fixed this error.
Minified React error Inconsistent stats resetting #299; visit https://reactjs.org/docs/error-decoder.html?invariant=299
a. Moving the first script tag out of <head> to right after the inline script fixed this error.
Command line
locust.exe
Locustfile contents
Python version
3.10.11
Locust version
2.28.0
Operating system
Microsoft Windows 10 Enterprise
The text was updated successfully, but these errors were encountered: