-
Notifications
You must be signed in to change notification settings - Fork 23
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
404 error when installing extension #35
Comments
That undefined is strange. I am not sure how the publisher could be undefined unless it was missing from the manifest. There should be something like this in the manifest:
Where are you getting the extensions? I could take a look at one and see if I get the same issue. |
The extension is just an empty test created using yo code. I don't think the "undefined" is a problem, but rather the URL formation. I can donwload the package file under https://mydomain.com/files/undefined/test-extension/0.0.1/full-package-name.vsix I made the following modifications on the product.json file, based on the parameters on the docs for vsx integration. "extensionsGallery": {
"serviceUrl": "https://mydomain.com/api",
"itemUrl": "https://mydomain.com/item",
"resourceUrlTemplate": "https://mydomain.com/{publisher}/{name}/{version}/{path}"
} Should I add something for "nlsBaseUrl", "publisherUrl" or "controlUrl"? |
I see, so it is just using the literal string No, Let me try |
I experimented and it is working for me with code-server, at least. Here is every step I did. First, to make the extension:
Next, to set up the marketplace:
Then install and run code-server:
Lastly:
I have not tried it with native VS Code, only code-server, so maybe there is something different there...are you just running the latest VS Code? 1.86.0? Or I guess maybe 1.87.0 since that came out yesterday I think. My |
A thought: run |
All right, I put my marketplace behind a certificate and trusted it on the system running VS Code, and I was able to install successfully (I edited the |
Hello i have probably the same probleme. I'm in airgapped env. Im running code-server in k8s. I have setup CORS. And using SSLTerminate behind HAPROXY. The Developer: Toggle Developer Tools return me the request URL : http://assets/hashicorp/terraform/2.31.0@linux-x64/Microsoft.VisualStudio.Services.Icons.Default?targetPlatform=linux-x64 But the URL return is in HTTP, and VScode policy dont want it. I'm trying to force ingress to use HTTPS but no one works It's possible to switch on code server to request with HTTPS URL ? |
Just to confirm, did you set the required forwarding headers? See the section here: https://github.com/coder/code-marketplace?tab=readme-ov-file#exposing-the-marketplace |
Yee I have tried in front of my haproxy and my nginx ingress, but it's possible I do it bad. I will try tomorrow. Thanks for answer |
Hello, yes i have correctly setup the Forwarded-host & Forwarded-Proto, but i've got the same probleme, in my ingress nginx i set this parameter :
And when i'm trying to download some externsion VSCode said me:
But my request URL is in https :
|
Interesting...we get the protocol here: code-marketplace/api/httpapi/httpapi.go Lines 56 to 72 in f44f339
So, assuming Is |
Bonjour, I've tried so many option but no on works. I actually i have set :
And the only solution working is to hardcoding http to https. And now it's work perfectly. I don't why but my ingress or haproxy add header to force http of the answer :( Merci :) |
Interesting! I wonder if there is something weird with |
Hello.
I'm trying to setup a small proof of concept using code-marketplace to distribute extensions on a corporate environment.
On a windows box, I was able to get the code-marketplace server up and running behin an nginx proxy for ssl termination, and by editing the product.json file in the vs code install dir I'm able to list the custom extensions on the extensions tab.
However, when I click on install, I get a XHR error and a message to try to download the extension manually. When I choose that option, my browser opens up to a 404 page on an address that looks like this https://mydomain.com/api/publishers/undefined/vsextensions/test-extension/0.0.1/vspackage.
Has anyone run into this sort of issue?
Best regards,
Carlos Jourdan
The text was updated successfully, but these errors were encountered: