Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'client_req' of undefined error #39

Closed
trentm opened this issue Aug 30, 2012 · 1 comment
Closed

Cannot read property 'client_req' of undefined error #39

trentm opened this issue Aug 30, 2012 · 1 comment

Comments

@trentm
Copy link
Owner

trentm commented Aug 30, 2012

{"name":"marlin_zone-agent","hostname":"757f7329-bc59-45be-9c7a-cb3e352cbef3","pid":20906,"log_id":"54a8272c-3cbb-4784-8099-01a79ff2476f","level":10,"client_req":{"method":"GET","url":"/task?wait=true","address":false,"headers":{"accept":"application/json","user-agent":"restify/1.0 (ia32-solaris; v8/3.11.10.17; OpenSSL/0.9.8w) node/0.8.5","date":"Thu, 30 Aug 2012 19:04:35 GMT"}},"attempt":1,"msg":"sending request","time":"2012-08-30T19:04:35.395Z","v":0}

Bunyan default output on that log:

$ by client_req_bug.log 

/Users/trentm/tm/node-bunyan/bin/bunyan:665
        req.client_req.httpVersion || "1.1",
           ^
TypeError: Cannot read property 'client_req' of undefined
    at emitRecord (/Users/trentm/tm/node-bunyan/bin/bunyan:665:12)
    at emitNextRecord (/Users/trentm/tm/node-bunyan/bin/bunyan:281:5)
    at gotRecord (/Users/trentm/tm/node-bunyan/bin/bunyan:207:3)
    at handleLogLine (/Users/trentm/tm/node-bunyan/bin/bunyan:509:10)
    at null.<anonymous> (/Users/trentm/tm/node-bunyan/bin/bunyan:910:7)
    at EventEmitter.emit (events.js:88:17)
    at ReadStream._emitData (fs.js:1362:10)
    at afterRead (fs.js:1344:10)
    at Object.wrapper [as oncomplete] (fs.js:362:17)
trentm added a commit that referenced this issue Aug 30, 2012
@trentm
Copy link
Owner Author

trentm commented Aug 30, 2012

Fixed in 0.13.5 release.

@trentm trentm closed this as completed Aug 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant