You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
request.get("spot/termination-time", SpotNotification.requestOpts, function (error, response, body) {
if (!error && response.statusCode === 200) {
// TODO: check value is date string or not
resolve(moment(body));
}
else if (response.statusCode === 404) { // HERE
resolve(null);
}
else {
reject(error || response.statusCode);
}
});
The code should check for error before accessing response.statusCode
The text was updated successfully, but these errors were encountered:
I have found this error in my logs:
This corresponds to this code:
The code should check for error before accessing response.statusCode
The text was updated successfully, but these errors were encountered: