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

Get fails in clean install on Ubuntu: KeyError: 'start_time' #52

Closed
adamskogman opened this issue Jan 8, 2013 · 2 comments
Closed

Get fails in clean install on Ubuntu: KeyError: 'start_time' #52

adamskogman opened this issue Jan 8, 2013 · 2 comments

Comments

@adamskogman
Copy link

A simple get seems to fail on a clean install:

[2013-01-08 15:22:38,880] ERROR/stderr: File "/home/ubuntu/google/locustfile.py", line 7, in on_start
[2013-01-08 15:22:38,880] ERROR/stderr: self.client.get("/")
[2013-01-08 15:22:38,880] ERROR/stderr: File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 254, in get
[2013-01-08 15:22:38,881] ERROR/stderr: return self.request('get', url, **kwargs)
[2013-01-08 15:22:38,881] ERROR/stderr: File "/usr/local/lib/python2.7/dist-packages/locust/clients.py", line 124, in request
[2013-01-08 15:22:38,881] ERROR/stderr: request_meta["response_time"] = int((time.time() - request_meta["start_time"]) * 1000)
[2013-01-08 15:22:38,881] ERROR/stderr: KeyError: 'start_time'

Heres the console output: https://gist.github.com/977b5f9b93fab7335348
Here's my locust.py: https://gist.github.com/0385d312d66d218822cb

My ubuntu setup is super-simple, just start from a EC2 ubuntu image, then:

aptitude install python-dev python-pip libevent
pip install locustio
@heyman
Copy link
Member

heyman commented Jan 8, 2013

Hi!

The problem is that you should include http:// in the -H parameter. Perhaps the naming (host) of this parameter is a little bit misleading.

We should probably at least warn the user if the host doesn't start with "http".

Thanks for the report!

@heyman heyman closed this as completed Jan 8, 2013
@charlescbeebe
Copy link

+1

No warning when "http://" omitted :(

v0.6.2

pancaprima pushed a commit to pancaprima/locust that referenced this issue May 14, 2018
pancaprima added a commit to pancaprima/locust that referenced this issue May 14, 2018
pancaprima added a commit to pancaprima/locust that referenced this issue May 14, 2018
* change dependencies order in setup.py (locustio#54)

* bugfix when hide edit modal while stopping and edit modal still open (locustio#56)

* rizal new feature upload test file to eb (locustio#53)

* upload test file to deployed eb

* enable user to upload test file to deployed eb

reload list on selector after file uploaded

writing files to slaves

distribute file to slaves and reload the test list

route config json to user fileio

update directories dinamycally

reload after upload, populate directory list

modify interface

add confirmation dialog

* fix non geometric elements

* fix test not reloaded when not in master slave mode, css file and alert message

* erlangga feature create new json keys (locustio#52)

* Revert "erlangga feature create new json keys (locustio#52)" (locustio#57)

This reverts commit acccdf5.
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

3 participants