question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

403 forbidden - invalid package

See original GitHub issue

I am attempting to download a package hosted on npmjs.org using my Verdaccio installation as a mirror. This works for many other packages I have used. The package in question is here:

https://www.npmjs.com/package/@ember-data/-build-infra

I suspect the problem is the leading dash in the name. When I attempt to install through Verdaccio, I get a 403 invalid package error. The expected behavior is that the package successfully installs.

In the console:

$ npm install @ember-data/-build-infra
npm ERR! code E403
npm ERR! 403 Forbidden - GET https://<<HOSTNAME>>/@ember-data%2f-build-infra - invalid package
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/deploy/.npm/_logs/2019-07-22T21_34_35_025Z-debug.log
[deploy@ip-172-31-26-34 ~]$ npm install @ember-data/-build-infra
npm ERR! code E403
npm ERR! 403 Forbidden - GET https://npm-registry.power.auction/@ember-data%2f-build-infra - invalid package

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/deploy/.npm/_logs/2019-07-22T21_34_41_594Z-debug.log

In the verdaccio log:

{"name":"verdaccio","hostname":"<<HOSTNAME>>","pid":29999,"sub":"in","level":30,"req":{"method":"GET","url":"/@ember-data%2f-build-infra","headers":{"host":"npm-registry.power.auction","x-forwarded-for":"34.228.153.10","x-forwarded-proto":"https","connection":"close","user-agent":"npm/6.9.0 node/v10.16.0 linux x64","npm-in-ci":"false","npm-scope":"","npm-session":"9279a6842df72517","referer":"install [REDACTED]","pacote-req-type":"packument","pacote-pkg-id":"registry:@ember-data/-build-infra","accept":"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*","authorization":"<Classified>","accept-encoding":"gzip,deflate"},"remoteAddress":"127.0.0.1","remotePort":44598},"ip":"127.0.0.1","msg":"127.0.0.1 requested 'GET /@ember-data%2f-build-infra'","time":"2019-07-22T21:38:55.442Z","v":0}
{"name":"verdaccio","hostname":"<<HOSTNAME>>","pid":29999,"sub":"in","level":35,"request":{"method":"GET","url":"/@ember-data%2f-build-infra"},"user":null,"remoteIP":"34.228.153.10 via 127.0.0.1","status":403,"error":"invalid package","bytes":{"in":0,"out":33},"msg":"403, user: null(34.228.153.10 via 127.0.0.1), req: 'GET /@ember-data%2f-build-infra', error: invalid package","time":"2019-07-22T21:38:55.444Z","v":0}

Environment Info:

System: OS: Linux 3.10 Red Hat Enterprise Linux Server 7.6 (Maipo) CPU: (32) x64 Intel® Xeon® CPU E5-2630 v3 @ 2.40GHz Binaries: Node: 10.16.0 - /usr/bin/node Yarn: 1.17.3 - /usr/bin/yarn npm: 6.9.0 - /usr/bin/npm Virtualization: Docker: 18.09.8 - /usr/bin/docker Browsers: Chrome: 75.0.3770.142

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jstephen-pacommented, Jul 24, 2019

Apologies for that:

$ ./node_modules/.bin/verdaccio --version
4.1.0
0reactions
lock[bot]commented, Oct 30, 2019

🤖This thread has been automatically locked 🔒 since there has not been any recent activity after it was closed. We lock tickets after 90 days with the idea to encourage you to open a ticket with new fresh data and to provide you better feedback 🤝and better visibility 👀. If you consider, you can attach this ticket 📨 to the new one as a reference for better context. Thanks for being a part of the Verdaccio community! 💘

Read more comments on GitHub >

github_iconTop Results From Across the Web

403 Forbidden Error: What It Is and How to Fix It - Airbrake Blog
This occurs when attempting to access an invalid or forbidden URL that the web server software has restricted. For example, Apache servers ...
Read more >
403 Forbidden error: What it is and how to fix it - Allconnect.com
A 403 error is an HTTP status code that means “access denied.” If you ever had a treehouse as a kid, you may...
Read more >
How to Fix a 403 Forbidden Error on Your WordPress Site
The 403 Forbidden error means that your server is working, but you no longer have permission to view all or some of your...
Read more >
What Does a 403 Forbidden Error Mean? How Do You Fix It?
The 403 Forbidden error is an HTTP status code that means that access to the page or resource you were trying to reach...
Read more >
What Is the 403 Forbidden Error and How to Fix It (8 Methods ...
Wrong IP address – the domain name points to a wrong or old IP address which now hosts a website that blocks your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found