4
thedev
6y

Let's talk about superagent, the nodejs http client.

This fucker defaults to localhost when it find the url to be incorrect. It doesn't complain or tell you your url suck. No. It reverts to localhost.

So "http://www.url.com" is fine and " http://www.url.com" reverts to localhost.

I spent 3 hours debugging this shit yesterday.

Then today, I started by looking at the config to realise the config template in ansible had an extra space before the url.

#ImproveYourErrorReportingFucker

Seriously though!! Don't try to help, just tell me when I fuck up. Don't be another HTML!

The "language" without errors.

Comments
Add Comment