Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not support install form a mirror host that use 3xx http status code #1740

Closed
gucong3000 opened this issue Jan 8, 2018 · 0 comments
Closed

Comments

@gucong3000
Copy link
Contributor

gucong3000 commented Jan 8, 2018

Steps to reproduce

Tell us about your environment:

$ npm config get puppeteer_download_host
https://npm.taobao.org/mirrors
  • Puppeteer version: HEAD
  • Platform / OS version: Windows 10 64
  • Node.js version: v9.2.0

What steps will reproduce the problem?

Please include code that reproduces the issue.

  1. run npm i GoogleChrome/puppeteer --save

What is the expected result?

Successfully installed.

What happens instead?

$ npm i puppeteer --save

> puppeteer@0.13.0 install E:\work\sms-bomber\node_modules\puppeteer
> node install.js

ERROR: Failed to download Chromium r515411! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
Error: Download failed: server returned code 302. URL: https://npm.taobao.org/mirrors/chromium-browser-snapshots/Win_x64/515411/chrome-win32.zip
    at ClientRequest.https.get.response (E:\work\sms-bomber\node_modules\puppeteer\utils\ChromiumDownloader.js:198:21)
    at Object.onceWrapper (events.js:254:19)
    at ClientRequest.emit (events.js:159:13)
    at HTTPParser.parserOnIncomingClient (_http_client.js:550:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:23)
    at TLSSocket.socketOnData (_http_client.js:439:20)
    at TLSSocket.emit (events.js:159:13)
    at addChunk (_stream_readable.js:265:12)
    at readableAddChunk (_stream_readable.js:252:11)
    at TLSSocket.Readable.push (_stream_readable.js:209:10)
gucong3000 added a commit to gucong3000/puppeteer that referenced this issue Jan 8, 2018
aslushnikov pushed a commit that referenced this issue Jan 9, 2018
This patch adds support for redirects to downloader.

Fixes #1740
igorshapiro pushed a commit to WiserSolutions/puppeteer that referenced this issue Jan 16, 2018
This patch adds support for redirects to downloader.

Fixes puppeteer#1740
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant