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

CherryPy debug logger reveals internals #6

Open
tiran opened this issue Aug 7, 2015 · 0 comments
Open

CherryPy debug logger reveals internals #6

tiran opened this issue Aug 7, 2015 · 0 comments
Labels

Comments

@tiran
Copy link
Member

tiran commented Aug 7, 2015

Some errors reveal internal information like paths when an error occurs. Debug mode and tracebacks should be disabled by default.

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 61, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/srv/freeipa-community-portal/lib/python2.7/site-packages/freeipa_community_portal/app.py", line 69, in POST
    SignUpMailer(user).mail()
  File "/srv/freeipa-community-portal/lib/python2.7/site-packages/freeipa_community_portal/mailers/mailer.py", line 65, in mail
    self._send(contents)
  File "/srv/freeipa-community-portal/lib/python2.7/site-packages/freeipa_community_portal/mailers/mailer.py", line 81, in _send
    server = smtplib.SMTP(MAIL_SERVER, SMTP_PORT)
  File "/usr/lib64/python2.7/smtplib.py", line 256, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib64/python2.7/smtplib.py", line 316, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib64/python2.7/smtplib.py", line 291, in _get_socket
    return socket.create_connection((host, port), timeout)
  File "/usr/lib64/python2.7/socket.py", line 557, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

Powered by CherryPy 3.5.0 
@tiran tiran added the bug label Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant