You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't return Internal Server Error for anything the user causes #344
Decoded, the message is: {"error":{"value":"lookup kuba.kuba: no such host","type":"InternalServerError"}}
It's clear that kuba.kuba is not a valid host, and that the user gave us improper data, but this got labeled as an Internal Server Error, prompting our proxy to show a "we're in maintenance" condition.
It's standard practice that, if the web app returns >= 500, that the LB should replace the error with something user-friendly -- JSON or HTML or otherwise, because basically, >= 500 means the app crashed.
This is a situation where the app didn't crash, so we should instead be telling the user something useful, like "kuba.kuba" isn't resolvable.
Note that it was an email address, it might be helpful to tell the user that email address at kuba.kuba is not resolvable rather than just kuba.kuba is not resolvable
@BradMW is working on a general triage and cleanup of error states. I think he'll have a plan for this and a number of other cases to present on the call today.
This is related to #115: There are already a handful of error types that specifically indicate certain client-facing errors. One of our problems was that, when using AMQP, full errors couldn't be returned across the queue. But @rolandshoemaker fixed this recently in #334, so yay!
FYI, I'm still getting acme.messages2.Error: malformed :: The request message was malformed :: Error creating new registration for [email protected], Boulder=(master +383885d Wed Jun 17 09:11:57 UTC 2015) Golang=(go1.4) BuildHost=(ubuntu@ip-172-30-0-34)
The specific issue discussed here, 500's for invalid email addresses, is resolved. It's hard to reproduce locally using ./start.py, because dns-test-srv returns 127.0.0.1 for all lookups, but if you comment out the relevant section, you can get a nice 400 response.
See also #700 for another issue around validation of email inputs.
Activity
jcjones commentedon Jun 11, 2015
boulder/ra/registration-authority.go
Line 65 in 08ac100
core.InternalServerErrorkuba commentedon Jun 11, 2015
Note that it was an email address, it might be helpful to tell the user that
email address at kuba.kuba is not resolvablerather than justkuba.kuba is not resolvablepde commentedon Jun 11, 2015
@BradMW is working on a general triage and cleanup of error states. I think he'll have a plan for this and a number of other cases to present on the call today.
jsha commentedon Jun 11, 2015
This is related to #115: There are already a handful of error types that specifically indicate certain client-facing errors. One of our problems was that, when using AMQP, full errors couldn't be returned across the queue. But @rolandshoemaker fixed this recently in #334, so yay!
jcjones commentedon Jun 11, 2015
I've got a patch in progress for this specific issue, @pde; I'm sure bradmw's will be a bigger, more comprehensive package.
Resolves Issue #344: Only send InternalServerError when needed
Resolves Issue #344: Only send InternalServerError when needed
Issue #344: RA: Pull out a `validateContacts` method
Merge pull request #354 from letsencrypt/344-internal_server_errors
kuba commentedon Jun 17, 2015
FYI, I'm still getting
acme.messages2.Error: malformed :: The request message was malformed :: Error creating new registrationfor[email protected],Boulder=(master +383885d Wed Jun 17 09:11:57 UTC 2015) Golang=(go1.4) BuildHost=(ubuntu@ip-172-30-0-34)jsha commentedon Sep 10, 2015
The specific issue discussed here, 500's for invalid email addresses, is resolved. It's hard to reproduce locally using
./start.py, becausedns-test-srvreturns127.0.0.1for all lookups, but if you comment out the relevant section, you can get a nice 400 response.See also #700 for another issue around validation of email inputs.