Not worked in Clean Flarum installation.
POST http://localhost/api/users/47/spamblock
<br />
<b>Fatal error</b>: Uncaught Laminas\Diactoros\Exception\InvalidArgumentException: Unable to encode data to JSON in Laminas\Diactoros\Response\JsonResponse: Malformed UTF-8 characters, possibly incorrectly encoded in C:\xampp\htdocs\vendor\laminas\laminas-diactoros\src\Response\JsonResponse.php:144
Stack trace:
#0 C:\xampp\htdocs\vendor\laminas\laminas-diactoros\src\Response\JsonResponse.php(79): Laminas\Diactoros\Response\JsonResponse->jsonEncode(Array, 15)
#1 C:\xampp\htdocs\vendor\flarum\core\src\Api\JsonApiResponse.php(27): Laminas\Diactoros\Response\JsonResponse->__construct(Array, 500, Array, 15)
#2 C:\xampp\htdocs\vendor\flarum\core\src\Foundation\ErrorHandling\JsonApiFormatter.php(41): Flarum\Api\JsonApiResponse->__construct(Object(Tobscure\JsonApi\Document), 500)
#3 C:\xampp\htdocs\vendor\flarum\core\src\Http\Middleware\HandleErrors.php(67): Flarum\Foundation\ErrorHandling\JsonApiFormatter->format(Object(Flarum\Foundation\ErrorHandling\HandledError), Object(Laminas\Diactoros\ServerRequest))
#4 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\Next.php(51): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#5 C:\xampp\htdocs\vendor\flarum\core\src\Http\Middleware\InjectActorReference.php(25): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#6 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\Next.php(51): Flarum\Http\Middleware\InjectActorReference->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#7 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#8 C:\xampp\htdocs\vendor\middlewares\request-handler\src\RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#9 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\Next.php(51): Middlewares\RequestHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#10 C:\xampp\htdocs\vendor\middlewares\base-path-router\src\BasePathRouter.php(101): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#11 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\Next.php(51): Middlewares\BasePathRouter->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#12 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\Middleware\OriginalMessages.php(36): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#13 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\Next.php(51): Laminas\Stratigility\Middleware\OriginalMessages->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#14 C:\xampp\htdocs\vendor\middlewares\base-path\src\BasePath.php(73): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#15 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\Next.php(51): Middlewares\BasePath->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#16 C:\xampp\htdocs\vendor\flarum\core\src\Http\Middleware\ProcessIp.php(24): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#17 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\Next.php(51): Flarum\Http\Middleware\ProcessIp->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#18 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#19 C:\xampp\htdocs\vendor\laminas\laminas-stratigility\src\MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#20 C:\xampp\htdocs\vendor\laminas\laminas-httphandlerrunner\src\RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#21 C:\xampp\htdocs\vendor\flarum\core\src\Http\Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#22 C:\xampp\htdocs\index.php(27): Flarum\Http\Server->listen()
#23 {main}
thrown in <b>C:\xampp\htdocs\vendor\laminas\laminas-diactoros\src\Response\JsonResponse.php</b> on line <b>144</b><br />