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

cannot open dashboard and console error shows 'the server responded with a MIME type of "text/plain".' #2632

Closed
2 tasks done
LeiYangGH opened this issue Mar 13, 2024 · 1 comment
Labels

Comments

@LeiYangGH
Copy link

Prerequisites

Description

i'm newbie and trying the hellow world from doc

PS C:\Users\LeiYang> D:\pv\loc\Scripts\Activate.ps1
(loc) PS C:\Users\LeiYang> locust -V
locust 2.24.0 from d:\pv\loc\lib\site-packages\locust (python 3.8.3)
(loc) PS C:\Users\LeiYang> cd D:\G\lucust-learn
(loc) PS D:\G\lucust-learn> locust -f .\demo.py
[2024-03-13 22:41:04,777] DESKTOP-1SLBP5D/WARNING/locust.main: Python 3.8 support is deprecated and will be removed soon
[2024-03-13 22:41:04,777] DESKTOP-1SLBP5D/INFO/locust.main: Starting web interface at http://localhost:8089 (accepting connections from all network interfaces)
[2024-03-13 22:41:04,816] DESKTOP-1SLBP5D/INFO/locust.main: Starting Locust 2.24.0

then i open above web page using either edge or chrome, both blank page, and console error is

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.

Command line

locust -f .\demo.py

Locustfile contents

from locust import HttpUser, task

class HelloWorldUser(HttpUser):
    @task
    def hello_world(self):
        self.client.get("/hello")
        self.client.get("/world")

Python version

3.8

Locust version

2.24.0

Operating system

windows 11

@LeiYangGH
Copy link
Author

duplicate.

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

No branches or pull requests

1 participant