TypeError: Cannot read property 'request' of undefined
See original GitHub issueI 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:
- Created 5 years ago
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Right, now I fully get it. Will fix.
Published as v1.5.6, thanks for your help!