Facebook - 解析输入URL时出错,没有数据被缓存,或者没有数据被刮除 [英] Facebook - Error parsing input URL, no data was cached, or no data was scraped

查看:222
本文介绍了Facebook - 解析输入URL时出错,没有数据被缓存,或者没有数据被刮除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

研究之后,我发现很多人面临同样的问题。但是到目前为止,我不解决这个问题,这是在我将服务器切换到linode.com之后发生的。



让我们举个例子。 www.acemark2u.com是在linode服务器下托管的网站之一,
当我尝试调试 https://developers.facebook.com/tools/debug/og/object/ ,它只是无法正确获取scrape信息,如果我尝试与页面之一www .acemark2u.com / about-us,它只显示错误解析输入URL时出错,没有数据被缓存,或没有数据被刮除。



奇怪的事情发生。当我尝试调试使用ip地址106.187.35.114/~acemark2一切顺利。抓取很好,页面没有错误404。



我怀疑它可能是由gethostbyaddr函数引起的(ref: http://www.gearhack.com/Forums/DisplayComments.php?file=Computer/Network/Internet/Preventing_Your_Web_Server_From_Blocking_Facebook_Share )但到目前为止没有解决办法

解决方案

我最后找到了解决方案。



在我的默认DNS A / AAAA记录中,我没有删除这几个ip

  2400:8900 :: f03c:91ff:fe73:a95d默认
邮件2400:8900 :: f03c:91ff:fe73:a95d默认
www 2400:8900 :: f03c:91ff:fe73 :a95d默认

这就是为什么有些用户在通过适当的网页访问时会指向上述IP地址。


After research I found that alot of people facing the same issue. But so far I don't solution, this happened after I switch my server to linode.com

lets take an example. www.acemark2u.com is one of the website hosted under the linode server, when I try to debug in https://developers.facebook.com/tools/debug/og/object/, it just couldn't fetch the scrape information correctly, and if I try with one of the page www.acemark2u.com/about-us, it just show me the error "Error parsing input URL, no data was cached, or no data was scraped."

weird things happen. when I try to debug using ip address 106.187.35.114/~acemark2 everything goes smooth. fetching nicely, no error 404 for pages.

I suspect it might caused by "gethostbyaddr" function (ref: http://www.gearhack.com/Forums/DisplayComments.php?file=Computer/Network/Internet/Preventing_Your_Web_Server_From_Blocking_Facebook_Share) but so far I don't have solutions.

解决方案

i found the solution at last.

In my default DNS A/AAAA record i did not remove these few ip

2400:8900::f03c:91ff:fe73:a95d  Default
mail    2400:8900::f03c:91ff:fe73:a95d  Default
www 2400:8900::f03c:91ff:fe73:a95d  Default

that's why some of the users will pointed to the above IP when they access via proper web address.

这篇关于Facebook - 解析输入URL时出错,没有数据被缓存,或者没有数据被刮除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆