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

Unable to Stop locust from Web interface occasionally #602

Closed
greyvugrin opened this issue Jun 9, 2017 · 1 comment
Closed

Unable to Stop locust from Web interface occasionally #602

greyvugrin opened this issue Jun 9, 2017 · 1 comment

Comments

@greyvugrin
Copy link

When stopping from the web interface I sometimes see the following in the terminal:

  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/locust/core.py", line 267, in run
    self.execute_next_task()
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/locust/core.py", line 293, in execute_next_task
    self.execute_task(task["callable"], *task["args"], **task["kwargs"])
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/locust/core.py", line 305, in execute_task
    task(self, *args, **kwargs)
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/locustfile.py", line 128, in home
    self.home_feed()
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/locustfile.py", line 67, in home_feed
    headers=get_headers(self.access_token)
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/requests/sessions.py", line 526, in get
    return self.request('GET', url, **kwargs)
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/locust/clients.py", line 113, in request
    response = self._send_request_safe_mode(method, url, **kwargs)
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/locust/clients.py", line 157, in _send_request_safe_mode
    return requests.Session.request(self, method, url, **kwargs)
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/requests/sessions.py", line 504, in request
    prep.url, proxies, stream, verify, cert
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/requests/sessions.py", line 677, in merge_environment_settings
    env_proxies = get_environ_proxies(url, no_proxy=no_proxy)
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/requests/utils.py", line 693, in get_environ_proxies
    if should_bypass_proxies(url, no_proxy=no_proxy):
  File "/Users/greyvugrin/Desktop/code/soloshot-locust-tests/lib/python2.7/site-packages/requests/utils.py", line 681, in should_bypass_proxies
    if bypass:
UnboundLocalError: local variable 'bypass' referenced before assignment

When it happens the web continues to show more requests coming through.

For reference, the offending task seems to be

    def home_feed(self):
        self.client.get(
            '/videos',
            headers=get_headers(self.access_token)
        )
@cyberw
Copy link
Collaborator

cyberw commented Oct 18, 2019

I hope this has been fixed.

@cyberw cyberw closed this as completed Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants