invakid404I
Windmill11mo ago
72 replies
invakid404

Intermittent 401 errors on private NPM packages

We're seeing some 401 errors in our Bun scripts during bun install of the form:

bun install v1.2.3 (8c4d3ff8)
error: GET https://npm.pkg.github.com/download/x/x0.0.1/xxx - 401


These errors only happen occasionally, and I cannot seem to understand on what basis. My assumption would be that specific workers are having trouble installing it, but I am unsure how I would debug this at all.

We have Bunfig install scopes configured at the Instance level in Windmill, so my assumption would be that all workers should be able to install private packages. I've also tried clearing the cache multiple times, which I thought used to fix the issue, but I cannot confirm that, as the errors seem to just come back eventually.

I don't know how the bunfig install scopes are given to the workers, but it may be worth mentioning that we use autoscaling, so in my head it does make some sense that it could be some race condition in the worker initialization itself that is causing this. Again, I am not sure how to confirm or deny this, so I would appreciate any pointers on how to collect more information regarding this issue.
Was this page helpful?