You need to add an .on('error', ...) handler somewhere.
Matt.
On Thu, Jun 14, 2012 at 1:32 PM, Jacob Lyles <[email protected]> wrote:
> Hi all,
>
> I have a nodejs script which fetches an xml file from a web server, parses
> it, then stores some data in a mongodb database. When I run it at the
> command line, it works fine 100% of the time. However, when I run it as a
> cron job, it throws an exception partway through. I redirect stderr to
> error.txt and I get the following error.txt:
>
> events.js:48
> throw arguments[1]; // Unhandled 'error' event
> ^
> Error: write EPIPE
> at errnoException (net.js:670:11)
> at Object.afterWrite [as oncomplete] (net.js:503:19)
>
>
> Could someone point me in the right direction to fix this?
>
> Thanks,
> Jacob
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en