yandex / yandex-tank

Load and performance benchmark tool
Other
2.46k stars 278 forks source link

When shooting stopped #50

Closed rkuzmin closed 10 years ago

rkuzmin commented 11 years ago
Exception happened during processing of request from ('10.101.1.143', 63478)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/yandex-tank/Tank/Plugins/WebOnline.py", line 163, in __init__
    BaseHTTPRequestHandler.__init__(self, request, client_address, server)
  File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
    self.handle()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "/usr/lib/yandex-tank/Tank/Plugins/WebOnline.py", line 199, in do_GET
    self.wfile.write('["' + self.server.owner.redirect + '"]')
TypeError: cannot concatenate 'str' and 'NoneType' objects
doctornkz commented 11 years ago

Please show me config?

babi4 commented 10 years ago

I have the same issue. Mu load.ini

root@yandex-tank:~/testing# cat load.ini
[phantom]
address =46.4.112.201
port = 80
host = dev.ekster.co:80
rps_schedule=const (1,50s) line (1,100,1m) step (40,5,1,8s)
header_http = 1.1
headers = [Host: dev.ekster.co]
  [User-Agent: Yandex-tank]
  [Connection: close]
  [Accept-Encoding:gzip,deflate]
uris = /
  /recovery
  /404
  /500
doctornkz commented 10 years ago

Why do you use "host" parameter? It's unesessary, try with no one.

babi4 commented 10 years ago

Thanks. All works fine without it.