-
Posts
2 -
Joined
-
Last visited
Posts posted by Nutscracker
-
-
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
Fatal error at _checkHttpError function. 'headers' undefined
in node-steamcommunity
Posted · Edited by Nutscracker
fix
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.