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.

Publishing scoped package does not work due to slash escape, even when not using reverse proxy

See original GitHub issue

Describe the bug After updating Verdaccio to latest version (4.11.0), publishing a scoped package with latest version of Verdaccio does not work due to “/” being escaped This has been reported before (see #1778) occurring when Verdaccio is used behind a reverse proxy, but in my case this happens with the default install and starting Verdaccio from the CLI, per: https://verdaccio.org/docs/en/installation

npm ERR! code E404
npm ERR! 404 Not Found - PUT http://<domain>/@<scope>%2f<package> - no such package available
npm ERR! 404 
npm ERR! 404  '@<scope>/<package>@1.2.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Expected behavior Should be able to install scoped package…

Workaround I reverted to an older version (4.0.3) and it works with that.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
FallingSnowcommented, Oct 5, 2021

Found the issue. The storage directory needs to have the proper permissions.

Then ran into an issue with Internal Server Error while trying to sign in. Turns out it was a htpasswd file permissions error.

File read errors should be bubbled up to the logs.

1reaction
FallingSnowcommented, Sep 26, 2021

Here is the test repo. Error occurs for me when using it.

https://github.com/FallingSnow/Verdaccio-2096

Read more comments on GitHub >

github_iconTop Results From Across the Web

Publishing scoped package does not work due to slash escape ...
Publishing scoped package does not work due to slash escape, even when not using reverse proxy.
Read more >
Scoped NPM for private repository converts slash "/" to "%2F"
Another possible scenario is that the slash encoding isn't really the problem. You simply do not have access to ...
Read more >
Automatically handle decoded slash in NPM scoped package ...
Artifactory sends 405 for PUT request when slash is decoded, ... reverse proxy of any kind to behave so that it doesn't decode...
Read more >
RFC 3261: SIP: Session Initiation Protocol
Outbound Proxy: A proxy that receives requests from a client, even though it may not be the server resolved by the Request-URI. Typically,...
Read more >
sbt Reference Manual — Combined Pages
Installing from a third-party package. Note: Third-party packages may not provide the latest version. Please make sure to report any issues with these...
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