-
Notifications
You must be signed in to change notification settings - Fork 243
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
Errors installing @ampproject/[email protected] behind proxy #832
Comments
Hm. That's annoying. Not sure what the best way is to fix this. As a workaround you can provide your own fetch implementation:
Let me know if that works and I'll update the docs. |
Yes, the problem is that this runs on |
Got it. The postinstall script failing is no problem. It's just warms up the cache to have a fallback in place in case optimizer is run when offline. We should turn this into a warning instead of an error. |
We're having the same issue. We're building a Next.js app which has |
Would an aggressive timeout help as well? |
Yes, that would help a lot in our case. |
@sebastianbenz When I checked there was no issue opened for |
This addresses the problem of the optimizer postinstall hook causing delayed installs if run behind a proxy. See ampproject/amp-toolbox#832 Fixes vercel#14070
@portenez I've created a PR for Next.js (and published the fix to NPM in v2.5.2) |
This addresses the problem of the optimizer postinstall hook causing delayed installs if run behind a proxy. See ampproject/amp-toolbox#832 Fixes #14070
This addresses the problem of the optimizer postinstall hook causing delayed installs if run behind a proxy. See ampproject/amp-toolbox#832 Fixes vercel#14070
Thanks @portenez & @sebastianbenz you guys rock. I had the same trouble and was going to trace back how to fix this. |
This addresses the problem of the optimizer postinstall hook causing delayed installs if run behind a proxy. See ampproject/amp-toolbox#832 Fixes vercel#14070
node-fetch
does not read thehttp_proxy
variables, so there are issues when installing in networks where a proxy is required.See
node-fetch
issue about thisThe text was updated successfully, but these errors were encountered: