Skip to content
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

GET /v2/projects does not support certain symbols that GET /v2/project/{id|slug} supports #914

Open
CCheukKa opened this issue May 4, 2024 · 0 comments
Labels
bug For issues where things aren't working as intended

Comments

@CCheukKa
Copy link

CCheukKa commented May 4, 2024

Describe the bug

If a slug contains certain symbols, GET /v2/projects does not return that project as if it doesn't exist despite GET /v2/project/{id|slug} supporting it without issue. HTML encoding can be used as a workaround.

So far, I have encountered this issue for +.

Steps to reproduce

I'll use Shulker+ as an example since that is where I first encountered the issue.

  1. Make a GET request to https://api.modrinth.com/v2/projects?ids=["shulker+"]
  • Response: []

Expected behaviour

The response should go through like usual.
For reference, making a GET request to https://api.modrinth.com/v2/project/shulker+ yields a normal response.

Additional context

HTML encoding can be used as a workaround: https://api.modrinth.com/v2/projects?ids=["shulker%2B"], despite this not being necessary for GET /v2/project/{id|slug}.

@CCheukKa CCheukKa added the bug For issues where things aren't working as intended label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For issues where things aren't working as intended
Development

No branches or pull requests

1 participant