-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AssertionError: Connection is a "hop-by-hop" header; it cannot be used by a WSGI application (see PEP 3333) #5
Comments
Looks like WSGI doesn't support it: https://www.python.org/dev/peps/pep-0333/ Wonder if there is a way around it since it is just proxying. |
Thanks for the reaction. But how can i forward from Factored authentication to my internal web application? What i try, in all situations i get the hop-by-hop header error. |
Yes, I'm not sure. I've never seen this and I don't know what your backend server looks like. You could try integrating with a proxy server instead: https://factored.readthedocs.org/en/latest/webserverplugins.html Otherwise, maybe try disabling the hop-by-hop on your webserver? What is the full traceback of the factored error? Can you try commenting out those lines of code that force the AssertionError and see how it behaves ignoring the headers? |
This is the output, when i forward to a nginx reverse proxy with the following setting:
Then i received the same error... |
Use gunicorn server |
After logon with Google Authenticator, i proxy'ed to another internal server i got the following error:
AssertionError: Connection is a "hop-by-hop" header; it cannot be used by a WSGI application (see PEP 3333)
This is the setting in my config:
10.0.12.22:8000 is my Factored machine.
Anyone knows what i doing wrong?
The text was updated successfully, but these errors were encountered: