Error 500 Internal Server Error

GET https://animatt.projet-matthew.fr/assets/@symfony/ux-turbo/turbo_controller.js

Forwarded to ErrorController (2cf373)

Exceptions

Unable to find asset "../ux-turbo/turbo_controller.js" imported from "/home/clients/6825f21ff59111e917e6615213be9906/sites/animatt-v2.projet-matthew.fr/assets/@symfony/stimulus-bundle/controllers-qoRywO9.js".

Exception

Symfony\Component\AssetMapper\Exception\ RuntimeException

  1.     private function handleMissingImport(string $message, ?\Throwable $e null): void
  2.     {
  3.         match ($this->missingImportMode) {
  4.             AssetCompilerInterface::MISSING_IMPORT_IGNORE => null,
  5.             AssetCompilerInterface::MISSING_IMPORT_WARN => $this->logger?->warning($message),
  6.             AssetCompilerInterface::MISSING_IMPORT_STRICT => throw new RuntimeException($message0$e),
  7.         };
  8.     }
  9.     private function findAssetForBareImport(string $importedModuleAssetMapperInterface $assetMapper): ?MappedAsset
  10.     {
  1.             } catch (CircularAssetsException) {
  2.                 // avoid circular error if there is self-referencing import comments
  3.             }
  4.         }
  5.         $this->handleMissingImport($message);
  6.         return null;
  7.     }
  8. }
  1.             $isRelativeImport str_starts_with($importedModule'.');
  2.             if (!$isRelativeImport) {
  3.                 // URL or /absolute imports will also go here, but will be ignored
  4.                 $dependentAsset $this->findAssetForBareImport($importedModule$assetMapper);
  5.             } else {
  6.                 $dependentAsset $this->findAssetForRelativeImport($importedModule$asset$assetMapper);
  7.             }
  8.             if (!$dependentAsset) {
  9.                 return $fullImportString;
  10.             }
JavaScriptImportPathCompiler->Symfony\Component\AssetMapper\Compiler\{closure}(array(array('import controller_0 from "../ux-turbo/turbo_controller.js";', 0), array('../ux-turbo/turbo_controller.js', 26), array('../', 26)))
  1.     public function compile(string $contentMappedAsset $assetAssetMapperInterface $assetMapper): string
  2.     {
  3.         $jsParser = new JavascriptSequenceParser($content);
  4.         return preg_replace_callback(self::IMPORT_PATTERN, function ($matches) use ($asset$assetMapper$jsParser) {
  5.             $fullImportString $matches[0][0];
  6.             $jsParser->parseUntil($matches[0][1]);
  7.             if (!$jsParser->isExecutable()) {
  8.                 return $fullImportString;
  1.         foreach ($this->assetCompilers as $compiler) {
  2.             if (!$compiler->supports($asset)) {
  3.                 continue;
  4.             }
  5.             $content $compiler->compile($content$asset$this->assetMapper ??= ($this->assetMapperFactory)());
  6.         }
  7.         return $content;
  8.     }
  1.         if (!$this->compiler->supports($asset)) {
  2.             return null;
  3.         }
  4.         $content = (new Filesystem())->readFile($asset->sourcePath);
  5.         $compiled $this->compiler->compile($content$asset);
  6.         return $compiled !== $content $compiled null;
  7.     }
  8.     private function getPublicPath(MappedAsset $asset, ?string $content): ?string
  1.         if (!isset($this->assetsCache[$logicalPath])) {
  2.             $isVendor $this->isVendor($sourcePath);
  3.             $asset = new MappedAsset($logicalPath$sourcePath$this->assetsPathResolver->resolvePublicPath($logicalPath), isVendor$isVendor);
  4.             $this->assetsCache[$logicalPath] = $asset;
  5.             $content $this->compileContent($asset);
  6.             [$digest$isPredigested] = $this->getDigest($asset$content);
  7.             $asset = new MappedAsset(
  8.                 $asset->logicalPath,
  9.                 $asset->sourcePath,
  1.         if ($configCache->isFresh()) {
  2.             return unserialize((new Filesystem())->readFile($cachePath));
  3.         }
  4.         $mappedAsset $this->innerFactory->createMappedAsset($logicalPath$sourcePath);
  5.         if (!$mappedAsset) {
  6.             return null;
  7.         }
in vendor/symfony/asset-mapper/AssetMapper.php -> createMappedAsset (line 41)
  1.         $filePath $this->mapperRepository->find($logicalPath);
  2.         if (null === $filePath) {
  3.             return null;
  4.         }
  5.         return $this->mappedAssetFactory->createMappedAsset($logicalPath$filePath);
  6.     }
  7.     public function allAssets(): iterable
  8.     {
  9.         foreach ($this->mapperRepository->all() as $logicalPath => $filePath) {
  1.     }
  2.     public function allAssets(): iterable
  3.     {
  4.         foreach ($this->mapperRepository->all() as $logicalPath => $filePath) {
  5.             $asset $this->getAsset($logicalPath);
  6.             if (null === $asset) {
  7.                 throw new \LogicException(\sprintf('Asset "%s" could not be found.'$logicalPath));
  8.             }
  9.             yield $asset;
  10.         }
  1.             }
  2.         }
  3.         // we did not find a match
  4.         $asset null;
  5.         foreach ($this->assetMapper->allAssets() as $assetCandidate) {
  6.             if ($pathInfo === $assetCandidate->publicPath) {
  7.                 $asset $assetCandidate;
  8.                 break;
  9.             }
  10.         }
  1.         $pathInfo rawurldecode($event->getRequest()->getPathInfo());
  2.         if (!str_starts_with($pathInfo$this->publicPrefix)) {
  3.             return;
  4.         }
  5.         $asset $this->findAssetFromCache($pathInfo);
  6.         if (!$asset) {
  7.             throw new NotFoundHttpException(\sprintf('Asset with public path "%s" not found.'$pathInfo));
  8.         }
  1.         $this->priority ??= $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      */
  2.     private function handleRaw(Request $requestint $type self::MAIN_REQUEST): Response
  3.     {
  4.         // request
  5.         $event = new RequestEvent($this$request$type);
  6.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  7.         if ($event->hasResponse()) {
  8.             return $this->filterResponse($event->getResponse(), $request$type);
  9.         }
  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.         if (!$this->handlingHttpCache) {
  2.             $this->resetServices true;
  3.         }
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/clients/6825f21ff59111e917e6615213be9906/sites/animatt-v2.projet-matthew.fr/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 09:16:44 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "23a343"
    },
    "request_uri": "https://animatt.projet-matthew.fr/_profiler/23a343",
    "method": "GET"
}
INFO 09:16:44 deprecation User Deprecated: Support for MySQL < 8 is deprecated and will be removed in DBAL 5 (AbstractMySQLDriver.php:75 called by AbstractDriverMiddleware.php:32, https://github.com/doctrine/dbal/pull/6343, package doctrine/dbal)
{
    "exception": {}
}

Stack Trace

RuntimeException
Symfony\Component\AssetMapper\Exception\RuntimeException:
Unable to find asset "../ux-turbo/turbo_controller.js" imported from "/home/clients/6825f21ff59111e917e6615213be9906/sites/animatt-v2.projet-matthew.fr/assets/@symfony/stimulus-bundle/controllers-qoRywO9.js".

  at vendor/symfony/asset-mapper/Compiler/JavaScriptImportPathCompiler.php:144
  at Symfony\Component\AssetMapper\Compiler\JavaScriptImportPathCompiler->handleMissingImport('Unable to find asset "../ux-turbo/turbo_controller.js" imported from "/home/clients/6825f21ff59111e917e6615213be9906/sites/animatt-v2.projet-matthew.fr/assets/@symfony/stimulus-bundle/controllers-qoRywO9.js".')
     (vendor/symfony/asset-mapper/Compiler/JavaScriptImportPathCompiler.php:209)
  at Symfony\Component\AssetMapper\Compiler\JavaScriptImportPathCompiler->findAssetForRelativeImport('../ux-turbo/turbo_controller.js', object(MappedAsset), object(AssetMapper))
     (vendor/symfony/asset-mapper/Compiler/JavaScriptImportPathCompiler.php:87)
  at Symfony\Component\AssetMapper\Compiler\JavaScriptImportPathCompiler->Symfony\Component\AssetMapper\Compiler\{closure}(array(array('import controller_0 from "../ux-turbo/turbo_controller.js";', 0), array('../ux-turbo/turbo_controller.js', 26), array('../', 26)))
  at preg_replace_callback('/            ^(?:\\/\\/.*)                     # Lines that start with comments        |            (?:                \'(?:[^\'\\\\\\n]|\\\\.)*+\'   # Strings enclosed in single quotes            |                "(?:[^"\\\\\\n]|\\\\.)*+"      # Strings enclosed in double quotes            )        |            (?:                            # Import statements (script captured)                import\\s*                    (?:                        (?:\\*\\s*as\\s+\\w+|\\s+[\\w\\s{},*]+)                        \\s*from\\s*                    )?            |                \\bimport\\(            )            \\s*[\'"`](\\.\\/[^\'"`\\n]++|(\\.\\.\\/)*+[^\'"`\\n]++)[\'"`]\\s*[;\\)]        ?    /mxu', object(Closure), 'import controller_0 from "../ux-turbo/turbo_controller.js";import controller_1 from "../../controllers/hello_controller.js";export const eagerControllers = {"symfony--ux-turbo--turbo-core": controller_0, "hello": controller_1};export const lazyControllers = {"csrf-protection": () => import("../../controllers/csrf_protection_controller.js")};export const isApplicationDebug = true;', -1, null, 256)
     (vendor/symfony/asset-mapper/Compiler/JavaScriptImportPathCompiler.php:67)
  at Symfony\Component\AssetMapper\Compiler\JavaScriptImportPathCompiler->compile('import controller_0 from "../ux-turbo/turbo_controller.js";import controller_1 from "../../controllers/hello_controller.js";export const eagerControllers = {"symfony--ux-turbo--turbo-core": controller_0, "hello": controller_1};export const lazyControllers = {"csrf-protection": () => import("../../controllers/csrf_protection_controller.js")};export const isApplicationDebug = true;', object(MappedAsset), object(AssetMapper))
     (vendor/symfony/asset-mapper/AssetMapperCompiler.php:40)
  at Symfony\Component\AssetMapper\AssetMapperCompiler->compile('import controller_0 from "../ux-turbo/turbo_controller.js";import controller_1 from "../../controllers/hello_controller.js";export const eagerControllers = {"symfony--ux-turbo--turbo-core": controller_0, "hello": controller_1};export const lazyControllers = {"csrf-protection": () => import("../../controllers/csrf_protection_controller.js")};export const isApplicationDebug = true;', object(MappedAsset))
     (vendor/symfony/asset-mapper/Factory/MappedAssetFactory.php:107)
  at Symfony\Component\AssetMapper\Factory\MappedAssetFactory->compileContent(object(MappedAsset))
     (vendor/symfony/asset-mapper/Factory/MappedAssetFactory.php:51)
  at Symfony\Component\AssetMapper\Factory\MappedAssetFactory->createMappedAsset('@symfony/stimulus-bundle/controllers-qoRywO9.js', '/home/clients/6825f21ff59111e917e6615213be9906/sites/animatt-v2.projet-matthew.fr/assets/@symfony/stimulus-bundle/controllers-qoRywO9.js')
     (vendor/symfony/asset-mapper/Factory/CachedMappedAssetFactory.php:43)
  at Symfony\Component\AssetMapper\Factory\CachedMappedAssetFactory->createMappedAsset('@symfony/stimulus-bundle/controllers-qoRywO9.js', '/home/clients/6825f21ff59111e917e6615213be9906/sites/animatt-v2.projet-matthew.fr/assets/@symfony/stimulus-bundle/controllers-qoRywO9.js')
     (vendor/symfony/asset-mapper/AssetMapper.php:41)
  at Symfony\Component\AssetMapper\AssetMapper->getAsset('@symfony/stimulus-bundle/controllers-qoRywO9.js')
     (vendor/symfony/asset-mapper/AssetMapper.php:47)
  at Symfony\Component\AssetMapper\AssetMapper->allAssets()
     (vendor/symfony/asset-mapper/AssetMapperDevServerSubscriber.php:193)
  at Symfony\Component\AssetMapper\AssetMapperDevServerSubscriber->findAssetFromCache('/assets/@symfony/ux-turbo/turbo_controller.js')
     (vendor/symfony/asset-mapper/AssetMapperDevServerSubscriber.php:127)
  at Symfony\Component\AssetMapper\AssetMapperDevServerSubscriber->onKernelRequest(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/http-kernel/HttpKernel.php:159)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/home/clients/6825f21ff59111e917e6615213be9906/sites/animatt-v2.projet-matthew.fr/vendor/autoload_runtime.php')
     (public/index.php:5)