-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Using your client, running the sample code from the README, it fails to handle the result for your own modrinth project 'mclogs':
Can be simplified to this call: $modrinthClient->getProject('mclogs');
PHP Fatal error: Uncaught InvalidArgumentException: Invalid value 'unknown' for 'client_side', must be one of 'required', 'optional', 'unsupported' in /home/u/repos/.../vendor/aternos/modrinth-api/lib/Model/Project.php:884
Stack trace:
#0 /home/u/repos/.../vendor/aternos/modrinth-api/lib/ObjectSerializer.php(542): Aternos\ModrinthApi\Model\Project->setClientSide()
modrinth/labrinth#1 /home/u/repos/.../vendor/aternos/modrinth-api/lib/Api/ProjectsApi.php(2941): Aternos\ModrinthApi\ObjectSerializer::deserialize()
modrinth/labrinth#2 /home/u/repos/.../vendor/aternos/modrinth-api/lib/Api/ProjectsApi.php(2862): Aternos\ModrinthApi\Api\ProjectsApi->getProjectWithHttpInfo()
modrinth/labrinth#3 /home/u/repos/.../vendor/aternos/modrinth-api/lib/Client/ModrinthAPIClient.php(184): Aternos\ModrinthApi\Api\ProjectsApi->getProject()
modrinth/labrinth#4 /home/u/repos/.../public/index.php(4): Aternos\ModrinthApi\Client\ModrinthAPIClient->getProject()
modrinth/labrinth#5 {main}
thrown in /home/u/repos/.../vendor/aternos/modrinth-api/lib/Model/Project.php on line 884
Failing at even the simplest command does not bode well for this client. I will go look somewhere else or just build my own. This is not a serious project and it should have a disclaimer at the top of the README saying that.
Metadata
Metadata
Assignees
Labels
No labels