{"record":{"id":"c406cba26ef1d9e7","repo":"slimphp/Slim","slug":"could-not-detect-any-serverrequest-creator-impleme","errorCode":null,"errorMessage":"Could not detect any ServerRequest creator implementations. Please install a supported implementation in order to use `App::run()` without having to pass in a `ServerRequest` object. See https://github.com/slimphp/Slim/blob/4.x/README.md for a list of supported implementations.","messagePattern":"Could not detect any ServerRequest creator implementations\\. Please install a supported implementation in order to use `App::run\\(\\)` without having to pass in a `ServerRequest` object\\. See https://github\\.com/slimphp/Slim/blob/4\\.x/README\\.md for a list of supported implementations\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"Slim/Factory/ServerRequestCreatorFactory.php","lineNumber":53,"sourceCode":"     * @throws RuntimeException\n     */\n    public static function determineServerRequestCreator(): ServerRequestCreatorInterface\n    {\n        if (static::$serverRequestCreator) {\n            return static::attemptServerRequestCreatorDecoration(static::$serverRequestCreator);\n        }\n\n        $psr17FactoryProvider = static::$psr17FactoryProvider ?? new Psr17FactoryProvider();\n\n        /** @var Psr17Factory $psr17Factory */\n        foreach ($psr17FactoryProvider->getFactories() as $psr17Factory) {\n            if ($psr17Factory::isServerRequestCreatorAvailable()) {\n                $serverRequestCreator = $psr17Factory::getServerRequestCreator();\n                return static::attemptServerRequestCreatorDecoration($serverRequestCreator);\n            }\n        }\n\n        throw new RuntimeException(\n            \"Could not detect any ServerRequest creator implementations. \" .\n            \"Please install a supported implementation in order to use `App::run()` \" .\n            \"without having to pass in a `ServerRequest` object. \" .\n            \"See https://github.com/slimphp/Slim/blob/4.x/README.md for a list of supported implementations.\"\n        );\n    }\n\n    protected static function attemptServerRequestCreatorDecoration(\n        ServerRequestCreatorInterface $serverRequestCreator\n    ): ServerRequestCreatorInterface {\n        if (\n            static::$slimHttpDecoratorsAutomaticDetectionEnabled\n            && SlimHttpServerRequestCreator::isServerRequestDecoratorAvailable()\n        ) {\n            return new SlimHttpServerRequestCreator($serverRequestCreator);\n        }\n\n        return $serverRequestCreator;","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/slimphp/Slim/blob/80900fb39cafce3ae53b18a2c4f642a122f03095/Slim/Factory/ServerRequestCreatorFactory.php#L35-L71","documentation":"Error \"Could not detect any ServerRequest creator implementations. Please install a supported implementation in order to use `App::run()` without having to pass in a `ServerRequest` object. See https://github.com/slimphp/Slim/blob/4.x/README.md for a list of supported implementations.\" thrown in slimphp/Slim.","triggerScenarios":"Thrown at Slim/Factory/ServerRequestCreatorFactory.php:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"80900fb39cafce3ae53b18a2c4f642a122f03095","analyzedAt":"2026-08-21T01:41:09.580Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}