Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Node app hangs on request call #118
I have a Node server app that, when fielding a request, makes a request of its own to get the HTML source for the page, which it then modifies and returns as a response to the HTTP call.
I've used this technique in other apps, without issue. But this app intermittently hangs when doing this.
I can easily do a workaround, but I thought I should try to find out if anyone has ideas what could be going wrong.
Here's the code in question.
When it hangs this is what the console.log call shows.
The server is running on Digital Ocean, the file its accessing is on Amazon S3.