{"record":{"id":"53ff7f56e3cd1379","repo":"appwrite/appwrite","slug":"avatar-remote-url-failed","errorCode":"AVATAR_REMOTE_URL_FAILED","errorMessage":"Failed to fetch favicon from the requested URL.","messagePattern":"Failed to fetch favicon from the requested URL\\.","errorType":"exception","errorClass":"Appwrite\\Extend\\Exception","httpStatus":404,"severity":"error","filePath":"src/Appwrite/Platform/Modules/Avatars/Http/Favicon/Get.php","lineNumber":91,"sourceCode":"        $width = 56;\n        $height = 56;\n        $quality = 80;\n        $output = 'png';\n\n        if (!\\extension_loaded('imagick')) {\n            throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Imagick extension is missing');\n        }\n\n        $userAgent = \\sprintf(\n            APP_USERAGENT,\n            System::getEnv('_APP_VERSION', 'UNKNOWN'),\n            System::getEnv('_APP_EMAIL_SECURITY', System::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS', APP_EMAIL_SECURITY))\n        );\n\n        try {\n            $pageResponse = $this->safeFetch($url, $userAgent);\n        } catch (\\Throwable) {\n            throw new Exception(Exception::AVATAR_REMOTE_URL_FAILED);\n        }\n\n        $body = $pageResponse->getBody();\n\n        $doc = new DOMDocument();\n        $doc->strictErrorChecking = false;\n        if (!empty($body)) {\n            @$doc->loadHTML($body);\n        }\n\n        $links = $doc->getElementsByTagName('link');\n        $outputHref = '';\n        $outputExt = '';\n        $space = 0;\n\n        foreach ($links as $link) { /* @var $link DOMElement */\n            $href = $link->getAttribute('href');\n            $rel = $link->getAttribute('rel');","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/appwrite/appwrite/blob/a1d520eea492ebd1da1ef2dc8db5b2b34e277dce/src/Appwrite/Platform/Modules/Avatars/Http/Favicon/Get.php#L73-L109","documentation":"Error \"Failed to fetch favicon from the requested URL.\" thrown in appwrite/appwrite.","triggerScenarios":"Thrown by the favicon endpoint when fetching the remote page or favicon from the requested URL fails (network error, DNS failure, non-2xx response).","commonSituations":"Occurs when the favicon endpoint cannot retrieve the remote page to locate its favicon.","solutions":["Verify the target URL is reachable from the server and returns a successful response.","Check DNS resolution and outbound network access from the Appwrite container."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a1d520eea492ebd1da1ef2dc8db5b2b34e277dce","analyzedAt":"2026-08-18T21:34:56.994Z","contentChangedAt":"2026-08-18T21:34:56.994Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}