Twitter Card Validator: fitching the page faild because the request timed out


#1

Hello, I am trying to validate mt URL using twitter card validation, but I’ve got an error as the image below shows.

In the following a description of how I was got this error.

First of all, let me inform you that I am using ReactJs. However, I was added the following code into index HTML file:

<meta name="twitter:card" content="summary" />
<meta property="og:title" content="$OG_TITLE" />
<meta property="og:description" content="$OG_DESCRIPTION" />
<meta property="og:image" content="$OG_IMAGE" />
<meta property="og:image:secure_url" content="$OG_IMAGE_SECURE" /> 
<meta property="og:url" content="$OG_URL" />
<meta property="og:type" content="$OG_TYPE" />
<meta property="og:site_name" content="$OG_SITE_NAME" />

After that I tried to validate the url “https://www.example.com/markets” and everything is okay, it was worked with title and description as in the content (Look to the second image card.PNG) . As a result we need to server side rendering to change the value of the title and description tags depend on the page (In our case we need to change the og:title content to “Markets page title” and the og:description content to “Markets page description”). After that I created a node server (sever.js) which listening on a port number. So, I used RewriteCond and RewiriteRule to redirect the twitterbot as well as facebookbot to an URL with port like the following:

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot/[1-9])
RewriteRule ^/(.*)$ https://www.example.com:2083/$1?facebookdirect=yes [QSA]

After all these steps I re-run the link in twitter card validation and I’ve got the error as the attached image shows.
Note that, if I used Facebook validation it worked (In the same case). On the other hand, if I used the twitter validation without adding the the twitterbot in rewritecond it worked, otherwise I will get the error.

What should I do?

Mt site URL is: https://pro.economies.ae/markets


#2

You’ll need to provide a live URL before anyone can help you to debug this.


#3

Okay no problem, this is the live url


#4

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