Exceptions

Invalid UUIDv7: "0198cc32-899c-748b-8d8…".

Exception

InvalidArgumentException

  1. public function __construct(string $uuid, bool $checkVariant = false)
  2. {
  3. $type = preg_match('{^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$}Di', $uuid) ? (int) $uuid[14] : false;
  4. if (false === $type || (static::TYPE ?: $type) !== $type) {
  5. throw new \InvalidArgumentException(\sprintf('Invalid UUID%s: "%s".', static::TYPE ? 'v'.static::TYPE : '', $uuid));
  6. }
  7. $this->uid = strtolower($uuid);
  8. if ($checkVariant && !\in_array($this->uid[19], ['8', '9', 'a', 'b'], true)) {
in vendor/symfony/uid/UuidV7.php -> __construct (line 36)
  1. public function __construct(?string $uuid = null)
  2. {
  3. if (null === $uuid) {
  4. $this->uid = static::generate();
  5. } else {
  6. parent::__construct($uuid, true);
  7. }
  8. }
  9. public function getDateTime(): \DateTimeImmutable
  10. {
in vendor/symfony/uid/Uuid.php -> __construct (line 57)
  1. public static function fromString(string $uuid): static
  2. {
  3. $uuid = self::transformToRfc9562($uuid, self::FORMAT_ALL);
  4. if (__CLASS__ !== static::class || 36 !== \strlen($uuid)) {
  5. return new static($uuid);
  6. }
  7. if (self::NIL === $uuid) {
  8. return new NilUuid();
  9. }
  1. }
  2. /** @var class-string<Uuid> $uuidClass */
  3. $uuidClass = $argument->getType();
  4. return [$uuidClass::fromString($value)];
  5. }
  6. }
  1. public function resolve(Request $request, ArgumentMetadata $argument): iterable
  2. {
  3. $method = $this->inner::class.'::'.__FUNCTION__;
  4. $this->stopwatch->start($method, 'controller.argument_value_resolver');
  5. yield from $this->inner->resolve($request, $argument);
  6. $this->stopwatch->stop($method);
  7. }
  8. }
  1. continue;
  2. }
  3. try {
  4. $count = 0;
  5. foreach ($resolver->resolve($request, $metadata) as $argument) {
  6. ++$count;
  7. $arguments[] = $argument;
  8. }
  9. } catch (NearMissValueResolverException $e) {
  10. $valueResolverExceptions[] = $e;
  1. public function getArguments(Request $request, callable $controller, ?\ReflectionFunctionAbstract $reflector = null): array
  2. {
  3. $e = $this->stopwatch->start('controller.get_arguments');
  4. try {
  5. return $this->resolver->getArguments($request, $controller, $reflector);
  6. } finally {
  7. $e->stop();
  8. }
  9. }
  10. }
in vendor/symfony/http-kernel/HttpKernel.php -> getArguments (line 175)
  1. $event = new ControllerEvent($this, $controller, $request, $type);
  2. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
  3. $controller = $event->getController();
  4. // controller arguments
  5. $arguments = $this->argumentResolver->getArguments($request, $controller, $event->getControllerReflector());
  6. $event = new ControllerArgumentsEvent($this, $event, $arguments, $request, $type);
  7. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  8. $controller = $event->getController();
  9. $arguments = $event->getArguments();
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. $this->boot();
  2. ++$this->requestStackSize;
  3. $this->resetServices = true;
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. while ($request = $worker->waitRequest()) {
  2. $this->sentryHubInterface?->pushScope();
  3. try {
  4. $symfonyRequest = $this->httpFoundationFactory->createRequest($request);
  5. $symfonyResponse = $this->kernel->handle($symfonyRequest);
  6. $content = match (true) {
  7. $symfonyResponse instanceof StreamedJsonResponse => StreamedJsonResponseWrapper::wrap($symfonyResponse),
  8. $symfonyResponse instanceof StreamedResponse => StreamedResponseWrapper::wrap($symfonyResponse),
  9. $symfonyResponse instanceof BinaryFileResponse => BinaryFileResponseWrapper::wrap($symfonyResponse, $symfonyRequest),
  1. error_log(sprintf('Missing RR worker implementation for %s mode', $this->mode));
  2. return 1;
  3. }
  4. $worker->start();
  5. return 0;
  6. }
  7. }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/app/vendor/autoload_runtime.php') in public/index.php (line 7)
  1. declare(strict_types=1);
  2. use App\Infrastructure\Kernel;
  3. require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
  4. return function (array $context): Kernel {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); // @phpstan-ignore argument.type
  6. };

Stack Trace

InvalidArgumentException
InvalidArgumentException:
Invalid UUIDv7: "0198cc32-899c-748b-8d8…".

  at vendor/symfony/uid/Uuid.php:42
  at Symfony\Component\Uid\Uuid->__construct()
     (vendor/symfony/uid/UuidV7.php:36)
  at Symfony\Component\Uid\UuidV7->__construct()
     (vendor/symfony/uid/Uuid.php:57)
  at Symfony\Component\Uid\Uuid::fromString()
     (src/Infrastructure/InputOutputMapping/UuidValueResolver.php:37)
  at App\Infrastructure\InputOutputMapping\UuidValueResolver->resolve()
     (vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php:37)
  at Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver->resolve()
     (vendor/symfony/http-kernel/Controller/ArgumentResolver.php:91)
  at Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments()
     (vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php:33)
  at Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver->getArguments()
     (vendor/symfony/http-kernel/HttpKernel.php:175)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:182)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/fluffydiscord/roadrunner-symfony-bundle/src/Worker/HttpWorker.php:76)
  at FluffyDiscord\RoadRunnerBundle\Worker\HttpWorker->start()
     (vendor/fluffydiscord/roadrunner-symfony-bundle/src/Runtime/Runner.php:33)
  at FluffyDiscord\RoadRunnerBundle\Runtime\Runner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/app/vendor/autoload_runtime.php')
     (public/index.php:7)