-
Notifications
You must be signed in to change notification settings - Fork 12
ERROR: unexpected registry response! {} #11
Comments
we had a failing authorization service on a single host yesterday. i believe this is the issue you ran into and it is resolved. would you mind testing again today? a side note.. wombat-cli calls whoami before every command and it probably shouldn't |
Still seeing the same behavior (no more 500s, though).
|
great. run there may be some account issue which ill be happy to look into. is your github username the same as your npm one? |
so happy you are trying hooks by the way! if you have any issues with them or thoughts please post them on https://github.com/npm/registry/issues . happy to answer any questions =) |
Yup. Same user name. And that worked (but kind of doesn't work for me in practical usage, which I'll explain). So, here's the refined bug report/feature request: Wombat should interpret environment variables in I have an This is a "problem" because my company's private repos also each have an npmrc in the project root that follows the same pattern: the auth token is included by reference to an environment variable. We do this because only certain users are permitted to have access to our npm organization's admin user (for security reasons), and this is how we switch identities -- by default, we are ourselves, but when we need to be the admin (currently, to manage access, for example, but This pattern works just fine with As an aside, the hooks feature is 🎉 💯 🎊 ! Great start! Our current use case is a hook on our organization that pings AWS API Gateway, which triggers an AWS Lambda function, which, if the event is a "package:publish" event, grants read-only access to the newly published package to our "deployers" npm team (which is contains a specific, non-person user whose credentials are used on CircleCI test, build, and deploy our apps). This should solve a major pain point. Previously, any time one of our engineers published a private npm package, they were confused when their builds would start failing. This was particularly painful because that stage of development -- since you've just published a new private package, you've probably just refactored something and expecting breakage. |
hmmmm. i see. this is a bug for sure.thank you! that is so cool. thank you so much for sharing your workflow! i have one also. more difficult to resolve but less of a problem.. the first time a package is changed after the very first hook for it is added the event is always if the first is solved your workflow should be really solid. to work around any potential issues from the second one you can |
😭 Well, eventually we'll get this workflow nailed down. I didn't expect this to be perfect. It's important, though. I think the ability to manage team access by rule (rather than requiring an individual grant for each package) is pretty core to private npm/organizations usage, so I'm hoping this is a stop-gap until npm allows me to just configure this in our organization's settings. (Not that github is any better, tbh, but it would be great to solve the problem instead of expanding it.) Is there a issue I can track for that bug? |
just made on npm/registry#25 |
ah yes, good point. thanks! |
Users of private npm modules (especialy in conjunction with npm organizations) commonly have package-local `.npmrc` files that use an environment variable as a placeholder for the auth token. The npm cli deferences these placeholders automatically. It would be preferable if this module matched that behavior. Currently, this lack of parity impacts the wombat tool. npm/wombat-cli#11
Users of private npm modules (especialy in conjunction with npm organizations) commonly have package-local `.npmrc` files that use an environment variable as a placeholder for the auth token. The npm cli deferences these placeholders automatically. It would be preferable if this module matched that behavior. Currently, this lack of parity impacts the wombat tool. npm/wombat-cli#11
Users of private npm modules (especialy in conjunction with npm organizations) commonly have package-local `.npmrc` files that use an environment variable as a placeholder for the auth token. The npm cli dereferences these placeholders automatically. It would be preferable if this module matched that behavior. Currently, this lack of parity impacts the wombat tool. npm/wombat-cli#11
I am seeing the same issue here:
Logged in on NPM, but not on wombat. |
Thanks for the ping. I'll see if i can get that pulled in today. |
@soldair If it helps,
|
I installed wombat as recommended:
npm install -g wombat
. Then to test it, ranwombat whoami
and got that error:node: v4.4.5
npm: v2.15.5 & v3.9.5
FWIW, I'm also seeing intermittent 500 errors from the registry, so maybe not specifically a wombat problem:
The text was updated successfully, but these errors were encountered: