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

[BUG] E503 - 503 Publish error from Cloudflare protection #1292

Closed
sayem314 opened this issue May 14, 2020 · 7 comments
Closed

[BUG] E503 - 503 Publish error from Cloudflare protection #1292

sayem314 opened this issue May 14, 2020 · 7 comments
Labels
Bug thing that needs fixing

Comments

@sayem314
Copy link

What / Why

It seems like npm registry https://registry.npmjs.org/ turned on CF protection which is causing publish issue. I and some of my social friends are having the issue as well. Tested from several VPS as well and from residential IP.

When

npm publish

Where

  • npm public registry

Current Behavior

Refusing to publish

Expected Behavior

Should publish normally

References

npmjs-cf503

image

...
18 http fetch PUT 503 https://registry.npmjs.org/hooman 80485ms attempt #3
19 verbose stack Error: 503 Service Unavailable - PUT https://registry.npmjs.org/hooman - Service Unavailable
19 verbose stack     at /usr/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:104:15
19 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:97:5)
20 verbose statusCode 503
...
@zhantewei2
Copy link

Me too!

@sayem314
Copy link
Author

Today there is a new issue.

image

@sayem314
Copy link
Author

UPDATE: Both issues are resolved now (I was able to publish with the same IP) but it's not completely gone, it seems to re-appears and fixed automatically. There should be a persistent fix.

@aosq
Copy link

aosq commented Aug 1, 2020

I'm able to reproduce this error consistently. I've been trying to publish my package tree-sitter-hack and I get the same error every time. I'm able to publish the same package under a different name (I published it privately for testing).

I also tried publishing an empty test package and every time I add the word "hack" to the name, I get the same 503 error. The same package without the word "hack" publishes successfully.

18 http fetch PUT 503 https://registry.npmjs.org/tree-sitter-hack 75289ms attempt #3
19 verbose stack Error: 503 Service Unavailable - PUT https://registry.npmjs.org/tree-sitter-hack - Service Unavailable
19 verbose stack     at /Users/antoniodejesusochoasolano/.nvm/versions/node/v14.7.0/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:114:15
19 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:93:5)
20 verbose statusCode 503
21 verbose pkgid tree-sitter-hack@0.0.1

@antoniotorres
Copy link

@antoniodejesusochoasolano I also removed the hack word from the name and was able to publish my package.

homebridge-garage-door-hack -> homebridge-garage-door-gpio.

@aosq
Copy link

aosq commented Sep 8, 2020

@antoniotorres nice! It would save people time and frustration if NPM would return a useful error message and publicly document that you can’t have the word “hack” in NPM packages.

Turns out you can have the word hack in certain some cases though. I ended up calling my package tree-sitter-hacklang.

@darcyclarke darcyclarke added the Bug thing that needs fixing label Oct 30, 2020
@darcyclarke
Copy link
Contributor

npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.

If your bug is reproducible on v7, please re-file this issue using our new issue template.

If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo

Closing: This is an automated message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing
Projects
None yet
Development

No branches or pull requests

5 participants