vscode-private-extension-manager icon indicating copy to clipboard operation
vscode-private-extension-manager copied to clipboard

404 Not Found - GET https://xxxxxxxx/%22/-/v1

Open Randall23 opened this issue 3 years ago • 4 comments

404 Not Found - GET https://xxxxxxx/-/v1/search?text=*&size=20&from=0&quality=0.65&popularity=0.98&maintenance=0.5 How can I change the endpoint in order to be able to use GET https://xxxxxxx/-/all

Randall23 avatar Jun 11 '21 23:06 Randall23

This uses libnpmsearch which explicitly says it does not support legacy search through /-/all. You will either need to update your registry server to use the current search API or change https://github.com/joelspadin-garmin/vscode-private-extension-manager/blob/1668f616bd993b8e32e1ef55a6b640ee75af40d6/extension/src/Registry.ts#L305-L316 so that it can optionally use a different search function.

joelspadin-garmin avatar Jun 15 '21 14:06 joelspadin-garmin

@joelspadin-garmin can you explain more about this error and the solution provided , i am also trying to connect to a private npm artificatory and getting 404 not found error. for testing purpose i have deployed only one package in artifactory .i have given url like https://artifactory.xxx.net:443/artifactory/xxx/

can we not connect to jfrog artifactories using this extension? since i am simply using private extension manager extension without modifiying your code, is their any way i can fix this without making code changes

amey2688 avatar Aug 16 '22 09:08 amey2688

what query parameters can i set so that it will just fetch first 200 extensions? i tried to follow documentation but coudnt get it working

amey2688 avatar Aug 16 '22 10:08 amey2688

can we not connect to jfrog artifactories using this extension?

I believe the registry I am using is based on Artifactory, but I was not responsible for setting it up, so I unfortunately don't have any more details about how to get that to work. I do know that we set up a completely separate registry which only contains our extensions. It is not mirroring NPM.

what query parameters can i set so that it will just fetch first 200 extensions?

As the extension is currently written, this is not possible. The extension will read from the server until it has gotten every package or until it hits a hard-coded limit of 1000 packages. https://github.com/joelspadin-garmin/vscode-private-extension-manager/blob/1668f616bd993b8e32e1ef55a6b640ee75af40d6/extension/src/Registry.ts#L27 https://github.com/joelspadin-garmin/vscode-private-extension-manager/blob/1668f616bd993b8e32e1ef55a6b640ee75af40d6/extension/src/Registry.ts#L307-L315

Why do you want to limit to 200 extensions?

joelspadin-garmin avatar Aug 16 '22 19:08 joelspadin-garmin