Javascript 木偶演员不';t在VPS(数字海洋)工作

Javascript 木偶演员不';t在VPS(数字海洋)工作,javascript,node.js,digital-ocean,vps,puppeteer,Javascript,Node.js,Digital Ocean,Vps,Puppeteer,我正处在一个微小的时刻,我得到了这个错误 (node:5549) UnhandledPromiseRejectionWarning: TimeoutError: Navigation Timeout Exceeded: 300000ms exceeded at Promise.then (/var/www/screenshot/node_modules/puppeteer/lib/NavigatorWatcher.js:94: at <anonymous> 已解决

我正处在一个微小的时刻,我得到了这个错误

(node:5549) UnhandledPromiseRejectionWarning: TimeoutError: Navigation Timeout Exceeded: 300000ms exceeded
    at Promise.then (/var/www/screenshot/node_modules/puppeteer/lib/NavigatorWatcher.js:94:
    at <anonymous>

已解决

问题是IP块,我可以使用代理修复它

现在我使用
--proxy server
参数如下:

const browser = await puppeteer.launch({
    executablePath: '/opt/google/chrome/chrome',
    args: [
        '--disable-setuid-sandbox',
        '--no-sandbox',
        '--disable-gpu',
        '--no-first-run',
        `--proxy-server=${proxyServer}`,
    ]
});
现在剧本开始工作了


谢谢大家的帮助

嗨,欢迎光临。您是否尝试从DigitalOcean VPS ping或cURL指定的URI?确实,您的VPS IP似乎已被目标站点阻止。@AndréDS现在尝试过,在我的本地计算机上返回:“bytes=32 23.74.205.72”,在我的VPS上返回“bytes=64 a104-88-22-57.deploy.static.akamaitechnologies.com”您能给我们完整的ping输出吗?
const browser = await puppeteer.launch({
    executablePath: '/opt/google/chrome/chrome',
    args: [
        '--disable-setuid-sandbox',
        '--no-sandbox',
        '--disable-gpu',
        '--no-first-run',
        `--proxy-server=${proxyServer}`,
    ]
});