Arthur

Pemberton

Full-stack web applications developer


got an unexpected keyword argument ‘server_hostname’

February 2, 2016Arthur Pemberton0 Comments

If you’re seeing this exception, you’re probably using some combination of the Python requests library, and gevent.

In my case, I was deploying a Django app with Gunicorn with a `gevent` worker type running on CentOS 7.2 with Python 2.7.5. Unfortuantely for us, that combination of software triggers a regression in `urllib3` with `gevent`. See issues #482 and #702. The troublesome thing about this issue is that it will only show in a full production configuration.

As of this writing, my only workaround has been to remove gevent as the worker type.


Leave a Reply