steamutils 1.1.22 → 1.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1524,17 +1524,15 @@ class SteamUser {
|
|
1524
1524
|
} else if (response.status === 200) {
|
1525
1525
|
break
|
1526
1526
|
} else if (response.status === 429) {
|
1527
|
-
console.log('Too Many Requests')
|
1527
|
+
console.log('Too Many Requests', config.url)
|
1528
1528
|
tooManyRequestTimestamp = new Date().getTime()
|
1529
1529
|
await sleep(30000)
|
1530
|
-
break
|
1531
1530
|
} else if (response.status === 401) {
|
1532
1531
|
console.log('Unauthorized')
|
1533
1532
|
if (params.method.toUpperCase() === 'POST') {
|
1534
1533
|
config.headers['Content-Type'] = config.headers['content-type'] = 'multipart/form-data'
|
1535
1534
|
retry = 1
|
1536
1535
|
}
|
1537
|
-
break
|
1538
1536
|
} else {
|
1539
1537
|
console.log(response.status);
|
1540
1538
|
}
|