{"record":{"id":"46de682f1a40f763","repo":"slimphp/Slim","slug":"could-not-detect-any-psr-17-responsefactory-implem","errorCode":null,"errorMessage":"Could not detect any PSR-17 ResponseFactory implementations. Please install a supported implementation in order to use `AppFactory::create()`. See https://github.com/slimphp/Slim/blob/4.x/README.md for a list of supported implementations.","messagePattern":"Could not detect any PSR-17 ResponseFactory implementations\\. Please install a supported implementation in order to use `AppFactory::create\\(\\)`\\. 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/AppFactory.php","lineNumber":152,"sourceCode":"        }\n\n        $psr17FactoryProvider = static::$psr17FactoryProvider ?? new Psr17FactoryProvider();\n\n        /** @var Psr17Factory $psr17factory */\n        foreach ($psr17FactoryProvider->getFactories() as $psr17factory) {\n            if ($psr17factory::isResponseFactoryAvailable()) {\n                $responseFactory = $psr17factory::getResponseFactory();\n\n                if (static::$streamFactory || $psr17factory::isStreamFactoryAvailable()) {\n                    $streamFactory = static::$streamFactory ?? $psr17factory::getStreamFactory();\n                    return static::attemptResponseFactoryDecoration($responseFactory, $streamFactory);\n                }\n\n                return $responseFactory;\n            }\n        }\n\n        throw new RuntimeException(\n            \"Could not detect any PSR-17 ResponseFactory implementations. \" .\n            \"Please install a supported implementation in order to use `AppFactory::create()`. \" .\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 attemptResponseFactoryDecoration(\n        ResponseFactoryInterface $responseFactory,\n        StreamFactoryInterface $streamFactory\n    ): ResponseFactoryInterface {\n        if (\n            static::$slimHttpDecoratorsAutomaticDetectionEnabled\n            && SlimHttpPsr17Factory::isResponseFactoryAvailable()\n        ) {\n            return SlimHttpPsr17Factory::createDecoratedResponseFactory($responseFactory, $streamFactory);\n        }\n\n        return $responseFactory;","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/slimphp/Slim/blob/80900fb39cafce3ae53b18a2c4f642a122f03095/Slim/Factory/AppFactory.php#L134-L170","documentation":"Error \"Could not detect any PSR-17 ResponseFactory implementations. Please install a supported implementation in order to use `AppFactory::create()`. 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/AppFactory.php:152 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"}