Skip to content

HTTP Error #2

Description

@goliatone

When using Raygun the transport:

logger.error('Ting Raygun', {errorType:'Error', message: 'Test this error'}, 'Error', new Error('another'), 'string', false, 9);

I get the following error:

_http_outgoing.js:333
    throw new Error('"name" and "value" are required for setHeader().');
          ^
Error: "name" and "value" are required for setHeader().
    at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:333:11)
    at new ClientRequest (_http_client.js:101:14)
    at Object.exports.request (http.js:49:10)
    at Object.exports.request (https.js:136:15)
    at Object.send (/Users/goliatone/myProject/eventstream/node_modules/winston-raygun/node_modules/raygun/lib/raygun.transport.js:26:22)
    at raygun.send (/Users/goliatone/myProject/eventstream/node_modules/winston-raygun/node_modules/raygun/lib/raygun.js:52:21)
    at Raygun.log (/Users/goliatone/myProject/eventstream/node_modules/winston-raygun/lib/winston_raygun.js:36:30)
    at emit (/Users/goliatone/myProject/eventstream/node_modules/winston/lib/winston/logger.js:186:17)
    at /Users/goliatone/myProject/eventstream/node_modules/winston/node_modules/async/lib/async.js:122:13
    at _each (/Users/goliatone/myProject/eventstream/node_modules/winston/node_modules/async/lib/async.js:46:13)

I pretty much copied and pasted some of the test code you have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions