Skip to content

/api/extensionquery response is empty #106

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

Closed
sevetseh28 opened this issue Apr 29, 2025 · 2 comments
Closed

/api/extensionquery response is empty #106

sevetseh28 opened this issue Apr 29, 2025 · 2 comments

Comments

@sevetseh28
Copy link

sevetseh28 commented Apr 29, 2025

Hi, Im trying to deploy code-marketplace locally using this compose file:

version: '3.8'

services:
  code-marketplace:
    image: ghcr.io/coder/code-marketplace:v2.3.1
    container_name: code-marketplace
    command: server --extensions-dir /extensions --address 0.0.0.0:3001
    volumes:
      - ./extensions:/extensions
    expose:
      - "3001"
    restart: unless-stopped

  nginx:
    image: nginx:latest
    container_name: nginx-reverse-proxy
    ports:
      - "443:443"
    volumes:
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
      - ./certs:/etc/nginx/certs:ro
    depends_on:
      - code-marketplace
    restart: unless-stopped

I'm adding extensions successfully with the add command but when I hit https://localhost/api/extensionquery with a POST request without filters I get this response:

{
    "results": [
        {
            "extensions": [],
            "resultMetadata": [
                {
                    "metadataType": "ResultCount",
                    "metadataItems": [
                        {
                            "name": "TotalCount",
                            "count": 0
                        }
                    ]
                }
            ]
        }
    ]
}

I've tried restarting the server already. I can also see the extension folders correctly.
Any ideas?

Thanks

@code-asher
Copy link
Member

code-asher commented Apr 29, 2025

You need at least filter type 8 to specify the IDE, otherwise nothing is returned (this is to match the Microsoft marketplace's behavior).

{"filters":[{"criteria":[{"filterType":8,"value":"Microsoft.VisualStudio.Code"}]}]}

@sevetseh28
Copy link
Author

Thank you! That worked 👌

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

No branches or pull requests

2 participants