这个错误日志到底意味着什么?

发布于 2024-11-27 08:00:30 字数 4846 浏览 5 评论 0原文

我从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小糖芽 2024-12-04 08:00:30

您必须在某个地方有一个不存在的 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.

待天淡蓝洁白时 2024-12-04 08:00:30

他们得到的错误是 404 响应代码:

--> HTTP/1.1 404 Not Found

home.html 找不到。

我尝试使用 netcat 做同样的事情,也得到了 404 响应:

$ nc www.spanishtavern.com 80
GET /home.html HTTP/1.0

HTTP/1.1 404 Not Found
Date: Mon, 01 Aug 2011 13:41:26 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Length: 280
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /home.html was not found on this server.</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at default Port 80</address>
</body></html>

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:

$ nc www.spanishtavern.com 80
GET /home.html HTTP/1.0

HTTP/1.1 404 Not Found
Date: Mon, 01 Aug 2011 13:41:26 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Length: 280
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /home.html was not found on this server.</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at default Port 80</address>
</body></html>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文