question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'request' of undefined

See original GitHub issue

I use axios 0.18.0 that uses follow-redirects 1.5.5. Sometimes I get this exception:

/home/andrey/projects/com-scanner/scanner/node_modules/follow-redirects/index.js:142
        nativeProtocol.request(this._options, this._onNativeResponse);
                       ^

TypeError: Cannot read property 'request' of undefined
    at RedirectableRequest._performRequest (/home/andrey/projects/com-scanner/scanner/node_modules/follow-redirects/index.js:142:24)
    at RedirectableRequest._processResponse (/home/andrey/projects/com-scanner/scanner/node_modules/follow-redirects/index.js:233:10)
    at ClientRequest.RedirectableRequest._onNativeResponse (/home/andrey/projects/com-scanner/scanner/node_modules/follow-redirects/index.js:39:10)
    at Object.onceWrapper (events.js:315:30)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:551:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:115:23)
    at Socket.socketOnData (_http_client.js:440:20)
    at emitOne (events.js:116:13)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
RubenVerborghcommented, Aug 20, 2018

Right, now I fully get it. Will fix.

0reactions
RubenVerborghcommented, Aug 21, 2018

Published as v1.5.6, thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'request' of undefined #2352
Hi. I 'm having problem running the create-react-app. Here is the error I've got. ` TypeError: Cannot read property 'request' of undefined.
Read more >
node.js - Error: Cannot read property 'request' of undefined
Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.
Read more >
Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >
How to Avoid Getting 'Cannot read property of undefined' in ...
This error occurs when you try to read or access a property on an object that is undefined . Another common case that...
Read more >
Resolving the JavaScript Promise Error "TypeError: Cannot ...
TypeError - Cannot read property 'then' of undefined is thrown when the caller is expecting a Promise to be returned and instead receives ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found