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

Portal 报错 Internal Server Error #30

Open
linbing1219 opened this issue Aug 31, 2017 · 0 comments
Open

Portal 报错 Internal Server Error #30

linbing1219 opened this issue Aug 31, 2017 · 0 comments

Comments

@linbing1219
Copy link

您好,我在使用portal时候,./control start 之后,访问

127.0.0.1:5050

出现internal service error
查看日志信息如下:

ng new HTTP connection (1): proxyhk.XXX.com]
2017-08-31 14:47:33	[connectionpool.py:350] [DEBUG: "GET http://127.0.0.1:1234/sso/sig HTTP/1.1" 302 7237]
2017-08-31 14:47:33	[connectionpool.py:350] [DEBUG: "GET http://www.internalrequests.org/showconfirmpage/?url=http://127.0.0.1:1234/sso/sig HTTP/1.1" 403 7605]
[2017-08-31 14:47:33 +0000] [32736] [ERROR] Error handling request
Traceback (most recent call last):
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 130, in handle
    self.handle_request(listener, req, client, addr)
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 171, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/flask/app.py", line 1473, in full_dispatch_request
    rv = self.preprocess_request()
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/flask/app.py", line 1666, in preprocess_request
    rv = func()
  File "/home/work/open-falcon/portal/web/__init__.py", line 50, in before_request
    return redirect_to_sso()
  File "/home/work/open-falcon/portal/web/__init__.py", line 58, in redirect_to_sso
    resp = make_response(redirect(uic.login_url(sig, urllib.quote(request.url))))
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/werkzeug/utils.py", line 364, in redirect
    response.headers['Location'] = location
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/werkzeug/datastructures.py", line 1167, in __setitem__
    self.set(key, value)
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/werkzeug/datastructures.py", line 1126, in set
    self._validate_value(_value)
  File "/home/work/open-falcon/portal/env/lib/python2.7/site-packages/werkzeug/datastructures.py", line 1093, in _validate_value
    raise ValueError('Detected newline in header value.  This is '
ValueError: Detected newline in header value.  This is a potential security problem

我在portal中的配置如下:

UIC_ADDRESS = {
    'internal': 'http://127.0.0.1:1234',
    'external': 'http://127.0.0.1:1234',
}

我也尝试了将external配置成内网ip:192.168.3.181,并且访问192.168.3.181:5050,还是出现一样的错误。
fe监听的端口地址是 0.0.0.0:1234

我不知道问题出在哪里,有人能解答吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant