While the client should really be getting a 500 response, a much more pressing concern is the lack of any kind of log or stack trace that even hints there was a problem. Undeclared variables can be noticed by IDEs, but in my real world case I had accidentally triggered a code path that lead to a throw new Error(), which took a while to track down. IMO if the server wants to stay up, it needs to tell people what happened. Otherwise it needs to crash. Doing neither is alarming.
Using this proxy, the contents of
http://example.com
will show up in your browser, instead ofhttp://tired.com
.While the client should really be getting a 500 response, a much more pressing concern is the lack of any kind of log or stack trace that even hints there was a problem. Undeclared variables can be noticed by IDEs, but in my real world case I had accidentally triggered a code path that lead to a
throw new Error()
, which took a while to track down. IMO if the server wants to stay up, it needs to tell people what happened. Otherwise it needs to crash. Doing neither is alarming.