老高的技术博客 - puppeteer的使用教程2 - 更多设置 的评论
在第一篇，老高只是简单的介绍了puppeteer如何安装和简单的用法，在第二篇中，老高为大家带来chrome浏览器的一些基本设置，比如禁止gpu以提升性能等等！
老高您好！我的代码中不加“--proxy-server=http://ip:port”可以正常使用，当然返回的是真实ip地址。 而使用“--proxy-server=http://ip:port”则报错。 (node:15944) UnhandledPromiseRejectionWarning: Error: net::ERR_TIMED_OUT at http://icanhazip.com/ at navigate (/aibi/mypup/t20191115/node_modules/puppeteer/lib/FrameManager.js:120:37) at processTicksAndRejections (internal/process/task_queues.js:93:5) -- ASYNC -- at Frame. (/aibi/mypup/t20191115/node_modules/puppeteer/lib/helper.js:111:15) at Page.goto (/aibi/mypup/t20191115/node_modules/puppeteer/lib/Page.js:675:49) at Page. (/aibi/mypup/t20191115/node_modules/puppeteer/lib/helper.js:112:23) at /aibi/mypup/t20191115/test002.js:58:16 at processTicksAndRejections (internal/process/task_queues.js:93:5) (node:15944) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:15944) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 请问这是什么情况呢？谢谢！