Comments (4)
I'm having the same problem for the past 20 hours but not when I run mix esbuild.install
, only when I'm running mix assets.deploy
in my Dockerfile (using a fly.io remote builder and locally).
Not sure if it's related, but it happens both in 0.7.1 and 0.8.1
=> [builder 13/17] RUN mix assets.deploy 220.7s
=> => # Rebuilding...
=> => # Done in 743ms.
=> => # 12:15:08.834 [debug] Downloading esbuild from https://registry.npmjs.org/@esbuil
=> => # d/linux-x64/-/linux-x64-0.17.11.tgz
from esbuild.
@jamesvl that's correct. We reach "https://registry.npmjs.org/@esbuild/linux-x64/0.19.8" to get the metadata, and then we get the tarball pointed by the metadata. In my machine, it does end-up downloading: "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.11.tgz" and in your case it will download "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.4.tgz". So everything looks correct to me and also works here. Are you running into any problem in particular? Can you please provide more info?
from esbuild.
On Friday our CI build was emitting this:
#25 1.629 18:57:50.213 [debug] Downloading esbuild from https://registry.npmjs.org/@esbuild/linux-x64/0.19.3
#25 61.97
#25 61.97 18:58:50.547 [error] Task #PID<0.201.0> started from Esbuild.Supervisor terminating
#25 61.97 ** (RuntimeError) couldn't fetch https://registry.npmjs.org/@esbuild/linux-x64/0.19.3: {:ok, {{~c"HTTP/1.1", 503, ~c"Service Unavailable"}, [{~c"connection", ~c"keep-alive"}, {~c"date", ~c"Fri, 08 Dec 2023 18:58:50 GMT"}, {~c"server", ~c"cloudflare"}, {~c"content-length", ~c"31"}, {~c"content-type", ~c"application/json"}, {~c"cf-ray", ~c"83273c827e2302bc-ORD"}], "{\"error\":\"Service Unavailable\"}"}}
#25 61.97
#25 61.97 You may also install the "esbuild" executable manually, see the docs: https://hexdocs.pm/esbuild
#25 61.97
#25 61.97 (esbuild 0.8.1) lib/esbuild/npm_registry.ex:65: Esbuild.NpmRegistry.fetch_file!/1
#25 61.97 (esbuild 0.8.1) lib/esbuild/npm_registry.ex:39: Esbuild.NpmRegistry.fetch_package!/2
#25 61.97 (esbuild 0.8.1) lib/esbuild.ex:238: Esbuild.install/0
#25 61.97 (elixir 1.15.7) lib/task/supervised.ex:101: Task.Supervised.invoke_mfa/2
#25 61.97 Function: #Function<0.45081244/0 in Esbuild.install>
Running esbuild.install
locally gave me the same 503, but looking at the registry file and downloading it manually worked fine. (Note the attempted URL lacks the full /linux-x64/-/linux-x64-0.19.8.tgz
that the registry file includes.)
I just tried it again, and the short URL is working successfully. My conclusion would be that a redirect in the registry was temporarily failing on Friday and is now fixed.
Seems fine to close this out!
from esbuild.
Yeah, it seems like a failure on npm. Thanks!
from esbuild.
Related Issues (20)
- esbuild location in /tmp/phx-esbuild causes permission issue on multiuser systems HOT 1
- watch multiple locations in multi-phoenix umbrella application HOT 2
- `mix esbuild` fails with `"/.cache/phx-esbuild": no such file or directory` HOT 2
- Package esbuild binaries in project HOT 2
- Support for esbuild plugins?
- docker alpine linux armv7 - esbuild is not available for architecture: armv7-alpine-linux-musleabihf HOT 1
- Verify integrity of downloaded esbuild package HOT 13
- Can you please add armv7a to supported archs HOT 3
- Can I pass `process.env.NODE_ENV` ? HOT 1
- On install, esbuild deletes line from app.js: import "../css/app.css" HOT 2
- Freeze when calling esbuild with default profile when it doesnt exist HOT 2
- Heads up: upcoming change to esbuild package names HOT 4
- operating behind a user auth proxy server HOT 16
- esbuild 0.16.0 changed registry locations HOT 2
- install fails with empty http_proxy env-var HOT 1
- Multiple watchers create multiple downloads and a conflict when installing HOT 3
- Support for resolving module ids that point to assets in Elixir packages HOT 2
- config > version HOT 1
- upgraded to 0.8 and now getting error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esbuild.