jakobkmar / pacmc

An easy-to-use package manager (and soon to be launcher) for Minecraft mods.
GNU Affero General Public License v3.0
121 stars 9 forks source link

Unexpected JSON token at offset 867: Unexpected 'null' value instead of string literal #32

Closed mooziii closed 2 years ago

mooziii commented 2 years ago

When installing a mod from modrinth, i get this error

Failed to deserialize the response to the following request: https://api.modrinth.com/api/v1/mod/aXf2OSFU/version

Unexpected JSON token at offset 867: Unexpected 'null' value instead of string literalJSON input: .....endencies":[{"version_id":null,"project_id":"mOgUt4GM","depe.....

(in this case i used pacmc install "ok zoomer")

mooziii commented 2 years ago

other mods from modrinth seem to work

jakobkmar commented 2 years ago

interesting, this seems to be a Modrinth issue, as the version id should never be null

jakobkmar commented 2 years ago

Modrinth changed its dependency system, which also affected the old v1 API, effectively breaking it. This will be fixed when pacmc uses the Modrinth v2 API.

jakobkmar commented 2 years ago

Closing this now with release 0.5.0.