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

Http server errors out. #1276

Closed
YaphetKG opened this issue Sep 11, 2019 · 4 comments

Comments

@YaphetKG
Copy link

commented Sep 11, 2019

I had the supervisor server stood up, and for some reason it fails to extract the server name / http host value from the request headers. This used to work but after a fresh pip install of supervisor it started to give me this error.

ERRO :Server Error: <class 'TypeError'>, unsupported operand type(s) for +: 'NoneType' and 'str': file: /usr/local/src/supervisor/supervisor/http.py line: 328
@mnaberez

This comment has been minimized.

Copy link
Member

commented Sep 11, 2019

This used to work but after a fresh pip install of supervisor it started to give me this error.

What version of Supervisor did you install with pip?

Error message from above:

ERRO :Server Error: <class 'TypeError'>, unsupported operand type(s) for +: 
'NoneType' and 'str': file: /usr/local/src/supervisor/supervisor/http.py line: 328

Line 328 in Supervisor 4.0.4:

if server_url[-1:]=='/':

There is no + on line 328 in Supervisor 4.0.4 (the latest release version) so you must have installed some other version.

@YaphetKG

This comment has been minimized.

Copy link
Author

commented Sep 11, 2019

my line in pip requirements file was
-e git+https://github.com/Supervisor/supervisor@master#egg=supervisor

@YaphetKG

This comment has been minimized.

Copy link
Author

commented Sep 11, 2019

I will use the pip install supervisor instead, Thanks.

@YaphetKG YaphetKG closed this Sep 11, 2019
@mnaberez

This comment has been minimized.

Copy link
Member

commented Sep 11, 2019

Reopening so we can fix master.

@mnaberez mnaberez reopened this Sep 11, 2019
mnaberez added a commit that referenced this issue Sep 16, 2019
References #1276

This reverts commit 109c562.
@mnaberez mnaberez closed this in ff7f181 Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.