Critical Error Linting URL: An internal error occurred while linting the URL

五迷三道 提交于 2019-12-05 09:04:16

I had a problem like this with the og:image pointing to an image hosted on Rackspace. The URL was something crazy like http://1234567890abcdef1234-1234567890abcdef123456780123412b.r23.cf5.rackcdn.com

I think the Facebook linter was seeing this as spam, because if I actually embedded the image in my app/assets it worked fine, so it wasn't the image that was the problem.

The solution was to set up a CNAME on my hosting provider that pointed to the hideously long Rackspace URL, e.g.

CNAME Value

images http://1234567890abcdef1234-1234567890abcdef123456780123412b.r23.cf5.rackcdn.com

Then I changed the og:image meta tag to be meta property="og:image" content="http://images.mydomain.com/relative_rackspace_imagepath.jpg"

I wanted to contribute a little data point here as this is currently the top google result for this error and there is little useful info out there.

In my case, the page was a post on a wordpress blog that happened to begin with a twitter post embed, and the twitter post happened to contain an url. My og tag plugin grabbed the embed and managed to place the url along with a little other cruft in og:description, and once I cleaned that up manually the error disappeared.

I think the lesson is that when this happens take a look at your og tags for the page for ANYTHING unusual. That's the place to start.

Happened to me once my og:image pointed to this url: http://xxxxxxx.appspot.com.storage.googleapis.com/IsraelFlag.jpg

I just changed it to: http://storage.googleapis.com/xxxxxxx.appspot.com/IsraelFlag.jpg and it works

probably very poor software parses the html

I spent hours trying to debug why this was happening for our site. It turns out it was because of the og:locale:alternate meta tags we had.

<meta property="og:locale:alternate" content="cs_CZ" />
<meta property="og:locale:alternate" content="de_DE" />
...

When Facebook sees this in your tags they subsequently hit your og:url with '?fb_locale=[lang]' where [lang] is each of your alternates. There is one request per alternate. In our case, we had code that was returning back a 302 on that request. As a result, the Facebook Open Graph Object Debugger kept saying "Error parsing input URL"

Once I fixed the responses to the alternate requests to actually return internationalized content, the issue was fixed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!