但是我收到错误错误:net::ERR_TUNNEL_CONNECTION_FAILED。我已经在 Heroku 配置变量中设置了所有 .env 信息,所以它们都可用。知道如何修复此错误并解决问题吗?我目前有 const browser = await puppeteer.launch({ args: [ "--proxy-server=https=myproxy:myproxyport", "--no-sandbox", '--disable-gpu', "...
except (pyppeteer.errors.NetworkError, pyppeteer.errors.PageError) as ex: # 无网络'net::ERR_INTERNET_DISCONNECTED','net::ERR_TUNNEL_CONNECTION_FAILED' if 'net::' in str(ex): await asyncio.sleep(10) else: raise 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 需求二: Pyppeteer执行JS 获...
} sw.Stop(); Console.WriteLine("耗时:"+ sw.ElapsedMilliseconds +"ms"); }catch(Exception ex) { Console.WriteLine("当前打开页面链接异常:"+ex.Message);if(ex.Message.Contains("ERR_TUNNEL_CONNECTION_FAILED") || ex.Message.Contains("ERR_PROXY_CONNECTION_FAILED")) {awaitbrowser.CloseAsync();//...