这个错误日志到底意味着什么?
我从 google Adwords 那里得到了回复,他们解释说,由于 HTTP 响应代码无效,他们不允许在我的网站上投放广告。这让人感到惊讶,因为该网站加载得很好,并且在我的调试器中,我根本找不到任何返回错误。
他们发送的错误:
http://www.spanishtavern.com/home.html
Start Time: Mon Jul 25 2011 15:51:12 GMT-0400 (Eastern Daylight Time)
t=1311623472198 [st= 0] +REQUEST_ALIVE
[dt=157]
t=1311623472198 [st= 0] URL_REQUEST_START_JOB [dt=
1]
--> load_flags = 1114240 (ENABLE_LOAD_TIMING
| MAIN_FRAME | VERIFY_EV_CERT)
--> method = "GET"
--> priority = 0
--> url =
"http://www.spanishtavern.com/home.html"
t=1311623472199 [st= 1] +URL_REQUEST_START_JOB
[dt=153]
--> load_flags = 1114240 (ENABLE_LOAD_TIMING
| MAIN_FRAME | VERIFY_EV_CERT)
--> method = "GET"
--> priority = 0
--> url =
"http://www.spanishtavern.com/home.html"
t=1311623472199 [st= 1] HTTP_CACHE_GET_BACKEND [dt=
0]
t=1311623472199 [st= 1] HTTP_CACHE_OPEN_ENTRY [dt=
0]
--> net_error = -2 (FAILED)
t=1311623472199 [st= 1] HTTP_CACHE_CREATE_ENTRY [dt=
0]
t=1311623472199 [st= 1] HTTP_CACHE_ADD_TO_ENTRY [dt=
0]
t=1311623472199 [st= 1] +HTTP_STREAM_REQUEST [dt=
52]
t=1311623472251 [st= 53] HTTP_STREAM_REQUEST_BOUND_TO_JOB
--> source_dependency =
{"id":80949,"type":11}
t=1311623472251 [st= 53] -HTTP_STREAM_REQUEST
t=1311623472251 [st= 53] +HTTP_TRANSACTION_SEND_REQUEST [dt=
0]
t=1311623472251 [st= 53] HTTP_TRANSACTION_SEND_REQUEST_HEADERS
--> GET /home.html HTTP/1.1
Host: www.spanishtavern.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT
6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122
Safari/534.30
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.3
t=1311623472251 [st= 53] -HTTP_TRANSACTION_SEND_REQUEST
t=1311623472251 [st= 53] +HTTP_TRANSACTION_READ_HEADERS
[dt=101]
t=1311623472251 [st= 53] HTTP_STREAM_PARSER_READ_HEADERS
[dt=101]
t=1311623472352 [st=154] HTTP_TRANSACTION_READ_RESPONSE_HEADERS
--> HTTP/1.1 404 Not Found
Date: Mon, 25 Jul 2011 19:51:12 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
P3P: CP="NOI NID ADMa OUR IND UNI
COM NAV"
Cache-Control: private,
must-revalidate
Set-Cookie: [value was stripped]
Set-Cookie: [value was stripped]
Content-Length: 5431
Connection: close
Content-Type: text/html;
charset=UTF-8
t=1311623472352 [st=154] -HTTP_TRANSACTION_READ_HEADERS
t=1311623472352 [st=154] HTTP_CACHE_WRITE_INFO [dt=
0]
t=1311623472352 [st=154] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472352 [st=154] HTTP_CACHE_WRITE_INFO [dt=
0]
t=1311623472352 [st=154] -URL_REQUEST_START_JOB
t=1311623472352 [st=154] HTTP_TRANSACTION_READ_BODY [dt=
0]
t=1311623472352 [st=154] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472354 [st=156] HTTP_TRANSACTION_READ_BODY [dt=
0]
t=1311623472354 [st=156] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472354 [st=156] HTTP_TRANSACTION_READ_BODY [dt=
0]
t=1311623472354 [st=156] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472354 [st=156] HTTP_TRANSACTION_READ_BODY [dt=
1]
t=1311623472355 [st=157] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472355 [st=157] -REQUEST_ALIVE
我为自己的愚蠢而道歉,但我无法弄清楚这个错误,更不用说它来自哪里了。有什么想法吗?
I got this back from google Adwords who explained they could not allow ads on my website because of an invalid HTTP response code. This comes as a surprise because the site loads perfectly alright, and in my debugger, I can not find any return errors at all.
The error they sent:
http://www.spanishtavern.com/home.html
Start Time: Mon Jul 25 2011 15:51:12 GMT-0400 (Eastern Daylight Time)
t=1311623472198 [st= 0] +REQUEST_ALIVE
[dt=157]
t=1311623472198 [st= 0] URL_REQUEST_START_JOB [dt=
1]
--> load_flags = 1114240 (ENABLE_LOAD_TIMING
| MAIN_FRAME | VERIFY_EV_CERT)
--> method = "GET"
--> priority = 0
--> url =
"http://www.spanishtavern.com/home.html"
t=1311623472199 [st= 1] +URL_REQUEST_START_JOB
[dt=153]
--> load_flags = 1114240 (ENABLE_LOAD_TIMING
| MAIN_FRAME | VERIFY_EV_CERT)
--> method = "GET"
--> priority = 0
--> url =
"http://www.spanishtavern.com/home.html"
t=1311623472199 [st= 1] HTTP_CACHE_GET_BACKEND [dt=
0]
t=1311623472199 [st= 1] HTTP_CACHE_OPEN_ENTRY [dt=
0]
--> net_error = -2 (FAILED)
t=1311623472199 [st= 1] HTTP_CACHE_CREATE_ENTRY [dt=
0]
t=1311623472199 [st= 1] HTTP_CACHE_ADD_TO_ENTRY [dt=
0]
t=1311623472199 [st= 1] +HTTP_STREAM_REQUEST [dt=
52]
t=1311623472251 [st= 53] HTTP_STREAM_REQUEST_BOUND_TO_JOB
--> source_dependency =
{"id":80949,"type":11}
t=1311623472251 [st= 53] -HTTP_STREAM_REQUEST
t=1311623472251 [st= 53] +HTTP_TRANSACTION_SEND_REQUEST [dt=
0]
t=1311623472251 [st= 53] HTTP_TRANSACTION_SEND_REQUEST_HEADERS
--> GET /home.html HTTP/1.1
Host: www.spanishtavern.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT
6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122
Safari/534.30
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.3
t=1311623472251 [st= 53] -HTTP_TRANSACTION_SEND_REQUEST
t=1311623472251 [st= 53] +HTTP_TRANSACTION_READ_HEADERS
[dt=101]
t=1311623472251 [st= 53] HTTP_STREAM_PARSER_READ_HEADERS
[dt=101]
t=1311623472352 [st=154] HTTP_TRANSACTION_READ_RESPONSE_HEADERS
--> HTTP/1.1 404 Not Found
Date: Mon, 25 Jul 2011 19:51:12 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
P3P: CP="NOI NID ADMa OUR IND UNI
COM NAV"
Cache-Control: private,
must-revalidate
Set-Cookie: [value was stripped]
Set-Cookie: [value was stripped]
Content-Length: 5431
Connection: close
Content-Type: text/html;
charset=UTF-8
t=1311623472352 [st=154] -HTTP_TRANSACTION_READ_HEADERS
t=1311623472352 [st=154] HTTP_CACHE_WRITE_INFO [dt=
0]
t=1311623472352 [st=154] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472352 [st=154] HTTP_CACHE_WRITE_INFO [dt=
0]
t=1311623472352 [st=154] -URL_REQUEST_START_JOB
t=1311623472352 [st=154] HTTP_TRANSACTION_READ_BODY [dt=
0]
t=1311623472352 [st=154] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472354 [st=156] HTTP_TRANSACTION_READ_BODY [dt=
0]
t=1311623472354 [st=156] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472354 [st=156] HTTP_TRANSACTION_READ_BODY [dt=
0]
t=1311623472354 [st=156] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472354 [st=156] HTTP_TRANSACTION_READ_BODY [dt=
1]
t=1311623472355 [st=157] HTTP_CACHE_WRITE_DATA [dt=
0]
t=1311623472355 [st=157] -REQUEST_ALIVE
I apologize for being daft, but I can't make heads or tails of this error, let alone, where it's coming from. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须在某个地方有一个不存在的
home.html
链接。 (这是在您的主启动页面上)您的主页实际上位于
home.php
如果您访问他们发送的日志中的网址:http://www.spanishtavern.com/home.html 你会发现你实际上在 404 页面上。 (查看 firebug,您将看到对 home.html 的请求返回 404)
更令人困惑的是,您的 404 页面总是重定向到主页。如果像 home.html 这样的 url 将您重定向到主页,则很容易将其视为 404 错误。
Somewhere you must have a link to
home.html
which doesn't exist. (This is on your main splash page)Your homepage is actually located at
home.php
If you visit the url in the log they've sent: http://www.spanishtavern.com/home.html you'll see that you're actually on the 404 page. (look in firebug and you'll see the request to home.html returning a 404)
To add to the confusion, your 404 page always redirects to the homepage. With a url like home.html redirecting you to the homepage, this could easily be missed as being a 404.
他们得到的错误是 404 响应代码:
--> HTTP/1.1 404 Not Found
home.html 找不到。
我尝试使用 netcat 做同样的事情,也得到了 404 响应:
The error they get is the 404 response code:
--> HTTP/1.1 404 Not Found
home.html can not be found.
I tried doing the same using netcat and also got a 404 response: