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

Charts not working well in version 1.4.2 #1690

Closed
mthaak opened this issue Jan 27, 2021 · 3 comments
Closed

Charts not working well in version 1.4.2 #1690

mthaak opened this issue Jan 27, 2021 · 3 comments
Labels

Comments

@mthaak
Copy link

mthaak commented Jan 27, 2021

Hi Locust developers,

I discovered your tool today and it looks like exactly what I need. However, I found that in version 1.4.2 (release 21 hours ago) the charts are not working well.

Describe the bug

The Reponse Times (ms) and Number of Users charts don't update at all. The Total Requests per Second chart updates but the tooltip values are undefined. This only happens in Locust 1.4.2. In Locust 1.4.1 the charts work perfectly.

Actual behavior

Locust 1.4.2:
image

This is what I see in my browser's dev console:
image
(many many times the same error)

Expected behavior

Exact same set up but then using Locust 1.4.1:
image

Steps to reproduce

See environment below

Environment

  • OS: Windows 10
  • Python version: 3.8.5
  • Locust version: 1.4.2
  • Locust command line that you ran: locust --host=...
  • Locust file contents (anonymized if necessary):
from locust import HttpUser, task, between

class QuickstartUser(HttpUser):
    wait_time = between(1, 2.5)

    @task
    def get_1(self):
        self.client.get(...)

    @task
    def get_2(self):
        self.client.get(...)

    @task
    def get_3(self):
        self.client.get(...)

    def on_start(self):
        self.client.headers['Authorization'] = f'Bearer {AUTH_TOKEN}'

50 total users spawned at 10/s

@mthaak mthaak added the bug label Jan 27, 2021
@cyberw
Copy link
Collaborator

cyberw commented Jan 27, 2021

@aek Can you take a look? I think your changes are the only ones relating to graphs in 1.4.2.

@aek
Copy link
Contributor

aek commented Jan 27, 2021

@cyberw Yeah, let me take a look about it and I will get back to this issue
@mthaak Thanks for reporting this one and glad you like the project too

@heyman
Copy link
Member

heyman commented Jan 28, 2021

This should now be fixed in 1.4.3, which should be up on PyPI in a couple of minutes once the build script has finished. Thanks for reporting @mthaak, and thanks for fixing @aek!

@heyman heyman closed this as completed Jan 28, 2021
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

4 participants