Jump to content
McKay Development
Nutscracker

Fatal error at _checkHttpError function. 'headers' undefined

Recommended Posts

https://github.com/DoctorMcKay/node-steamcommunity/blob/master/components/http.js at line 94 "if (response.statusCode >= 300 && response.statusCode <= 399 && response.headers.location.indexOf('/login') != -1) {
In my program I got fatal error "Uncaught Exception TypeError: Cannot read property 'headers' of undefined at SteamCommunity._checkHttpError" 
I believe this problem associated with socket hang up error

Share this post


Link to post
Share on other sites

I fixed problem. The code is correct, a previous programmer tried to use 'headers' property in our code, without checking. This property comes from _checkHttpError, I did not notice at those moment that error comes from our code.

Edited by Nutscracker
fix

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...