question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gevent error when locust server started and browse the website

See original GitHub issue

Describe the bug

When I started the locust server then I browse the website, the log is:

python -m locust
[2019-11-13 00:24:30,516] SQZ777/INFO/locust.main: Starting web monitor at *:8089
[2019-11-13 00:24:30,517] SQZ777/INFO/locust.main: Starting Locust 0.12.2
[2019-11-13 00:24:33,820] SQZ777/ERROR/stderr: <gevent._socket3.socket object, fd=956, family=23, type=1, proto=0>: Invalid HTTP method: '\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03Yç\x95ç.d\x9aÿN$¾Ò\x03>þ\\îÅî9³\t\x8e\x90\x8fe\x18J¥D\x8cú Ê*Øî\x08[\x01í\x9c\xad©tá »\x04vðìè\x15E\x96\x8cêXaõCrö\x81\x00"zz\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00\n'
[2019-11-13 00:24:33,822] SQZ777/ERROR/stderr: <gevent._socket3.socket object, fd=948, family=23, type=1, proto=0>: Invalid HTTP method: '\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03\x9c¦d_à\x8b[xý\x9eúaþÒ&\x11m\x00hCºY8ô\x05\x13$úF\t\x98\x94 \x13Ý7J*\x9dÂ)\x9dq_ÐNê¼\x80\x8fáñ\x01·2\x11É\x1f6hKUpÎ\x00"\x1a\x1a\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00\n'
[2019-11-13 00:24:33,851] SQZ777/ERROR/stderr: <gevent._socket3.socket object, fd=960, family=23, type=1, proto=0>: Invalid http version: '\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03)p,.ò\x8d¸\x96ñ\x91þª¸,ûÏØ@<ÆRßÏBº!Ø\x80ñûö cb\x1dLÄ\'\x0fÖG\x84gvm±G\x975$ÏêÎï7\x10\x07sØ»*i_\x17\x00"\x8a\x8a\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00\n'

Environment settings

  • OS: Windows 10
  • Python version: 3.7.5
  • Locust version: 0.12.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lolwhitakercommented, Nov 1, 2021

@lundstrj I just debugged this same error message with someone and it turned out they had a config error. They has set the worker’s master-port setting to use the WEB_UI port (8089) instead of using the expected/default bind port (5557). Not sure why this was the error in that case, but it went away when they corrected that config issue.

0reactions
marcinhcommented, Mar 2, 2022

Same here - I just upgrade Locust + gevent to the latest version to avoid gevent issue, but the problem mentioned in this topic still exists - in my case there are 3 different messages.

locust-master: <gevent._socket3.socket at 0x7fdc22906ca0 object, fd=19, family=2, type=1, proto=0>: Expected GET method: '\x16\x03\x01\x010\x01\x00\x01,\x03\x03É\x89@\x81Þ\x85\x1cs«\x02\xadi%±\x9e¹Ð|\x05bÿ`\\\x1aÀlPG\x98\x04}¾\x00\x00¬À0À,À(À$À\x14À\n'
locust-master: <gevent._socket3.socket at 0x7f7e20206a60 object, fd=35, family=2, type=1, proto=0>: Invalid http version: '\x16\x03\x01\x010\x01\x00\x01,\x03\x03©6\x1a\x1e\x80l\x8a8Ïm½<\x1d²¹:è.\x00Ï%^9¨~~\x9c\x0fü\x9e\x8fà\x00\x00¬À0À,À(À$À\x14À\n'
locust-master: <gevent._socket3.socket at 0x7fd68f511e80 object, fd=95, family=2, type=1, proto=0>: Invalid HTTP method: '\x16\x03\x01\x010\x01\x00\x01,\x03\x03\xad\x80Bµ\x12Á\x9cRþ¬³ZðâÀí«êrl\x1a\x83\x89Î9#·\x9eð\x13Á´\x00\x00¬À0À,À(À$À\x14À\n'

+ there is something like this after the last error:

|ERROR  |locust.runners           |  RPCError found when receiving from client: ZMQ interrupted message
Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: Failed building wheel for gevent when installing Locust
I found the solution to this issue, the gevent 22.10.1 is just released yesterday (Released: Oct 15, 2022) causes the problem.
Read more >
Release 0.8.1 - Locust Documentation
Locust is an easy-to-use, distributed, user load testing tool. It is intended for load-testing web sites (or other systems).
Read more >
Load Testing with Locust (Part 1) | by Beau Lyddon
The results are used to validate our assumptions about the service(s) behavior, and to configure the systems for expected production traffic. We ...
Read more >
How we manipulated Locust to test system performance under ...
To make sure everything was operating smoothly we ran checks to see if the nodes running the Event bus were under too much...
Read more >
Python Locust For Load Testing Website Or Endpoint URL
Locust is completely event-based(gevent), and therefore it's ... After running Locust with 100 users for the first time, I had an error rate ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found