Skip to content

[Minecraft Modrinth] Search returns HTTP 400 – extra bracket in versions facet #169

Description

@FabTheGamer

Since cad0e6a the search on the Minecraft Plugins page is always empty
when a Minecraft version is set. The log shows
"HTTP request returned status code 400" for every search.

In MinecraftModrinthService::getProjects():

$facets .= ',["versions:' . $minecraftVersion . '"]]';

has one ] too many, so the facets become

[["categories:paper"],["versions:26.3"]],["project_type:mod","project_type:plugin"]]

which is invalid JSON.

Changing it to

$facets .= ',["versions:' . $minecraftVersion . '"]';

fixes it for me.

Panel: Docker image ghcr.io/pelican/panel:latest, plugin from main
Server: Paper 26.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions