Ver Fonte

remove 429 check for browser login

Mike L há 3 anos atrás
pai
commit
97119a24ca
2 ficheiros alterados com 0 adições e 4 exclusões
  1. 0 2
      dist/twitter.js
  2. 0 2
      src/twitter.ts

+ 0 - 2
dist/twitter.js

@@ -428,8 +428,6 @@ class default_1 {
                     .then(() => page.click('button:has-text("実行")', { timeout: 0 }))
                     .then(next);
             }),
-            page.waitForResponse(res => res.status() === 429, { timeout: 0 })
-                .then(() => { logger.error('fatal error: login restricted: code 429, exiting'); process.exit(1); }),
             next(),
         ]))(() => page.click('button:has-text("情報を保存")', { timeout: 0 }).then(() => { isWaitingForLogin = false; })));
         browserSaveCookies = page => page.context().cookies()

+ 0 - 2
src/twitter.ts

@@ -304,8 +304,6 @@ export default class {
                 .then(() => page.click('button:has-text("実行")', {timeout: 0}))
                 .then(next);
             }),
-            page.waitForResponse(res => res.status() === 429, {timeout: 0})
-              .then(() => { logger.error('fatal error: login restricted: code 429, exiting'); process.exit(1); }),
             next(),
           ]))(() => page.click('button:has-text("情報を保存")', {timeout: 0}).then(() => { isWaitingForLogin = false; }))
         );