Custom page, Status code 500

Hello, I am trying to insert custom pages. But I got this message in the preview:
Custom error preview failed
Status code 500 received while retrieving model from …
target: one of the
cf error: 1000s
block: ip-ban
block: flow limit
block: client-auth
block: basic-sec-captcha
block: country-captcha
block: adv-sec-captcha
block: waf
block: iuam-basic
cf error: 500s
always online: no copy
phishing: warn
regulation: block

I tried with several errors (IP / Country Block, 1000 Class Errors) and their associated tokens.

Other verified prerequisites:
-max 1.5MB size, but no image
-W3 validator OK
-Page status 200 OK

This page is hosted on gitub (unlike other CloudFlare related production sites), could this be the cause?

Basic HTML : link

  <!doctype html>
    <html lang="fr">
    	<head>
    		<title>Erreur !</title>
    		<meta charset="utf-8">
		<link href="style.css" rel="stylesheet" type="text/css">
	</head>
	<body>
		<div class="contentWrap">
			<p>&nbsp;</p>
			<p>&nbsp;</p>

			<div class="titre">
				<p><strong>OUPS... Houston nous avons un problème</strong></p>
				<p><strong>Ups… da ist etwas schief gelaufen! </strong></p></div>
				<div class="intro">
					<p>À cause d’un fort trafic sur notre site internet, nous sommes momentanément indisponibles<br />
						<p>Aufgrund der hohen Nachfrage ist unsere Webseite vorrübergehend nicht erreichbar<br />
				</div>
							<p>::CLIENT_IP::</p>
							<p>::RAY_ID::</p>
							<p>::GEO::</p>
							<br />
							<br />
							<div class="flex-container"><div class="box">
								<div><div class="txtcontact">Pour toute question relative à une commande
									contactez-nous :<br/><br/>
								Möchten Sie eine Bestellung aufgeben? Kontaktieren Sie uns:</div>
								<br/>
								<div class="contact"></div>
							</div></div>
						</div>
						<br/>
						<br/>
						<br/>
						<br/>
		</div>
	</body>
</html>

Can you try and make your external file to style.css into HTML using <style type="text/css"></style>?

Also make sure to minify it due to possible character limits, if so.

I assume yes.

Have you checked this source:

2 Likes

The problem was the external .css file.
The error seems so obvious to me now.
Thank you @fritexvz :+1:

1 Like

I am happy to assist you and glad you have found a solution to your issue :wink:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.