2017-08-14 299 views
0

我試圖在我的網頁上顯示一張圖片,上傳時使用了PHP,但是當頁面加載時,圖片一直處於等待狀態並很快出現此錯誤:(failed)net :: ERR_CONNECTION_RESET。 我看了一下Chrome's net-internals,但我找不到相關的錯誤信息。 (此問題也發生在其他瀏覽器中)以下是日誌:Chrome無法加載資源

17460: URL_REQUEST 
http://localhost/profile_pics/Vulturemox_pic.png 
Start Time: 2017-08-14 13:24:31.954 

t=287810 [st= 0] +REQUEST_ALIVE [dt=47819] 
        --> priority = "LOWEST" 
        --> url = "http://localhost/profile_pics/Vulturemox_pic.png" 
t=287810 [st= 0] URL_REQUEST_DELEGATE [dt=0] 
t=287810 [st= 0] +URL_REQUEST_START_JOB [dt=47818] 
         --> load_flags = 33026 (BYPASS_CACHE | MAYBE_USER_GESTURE | VERIFY_EV_CERT) 
         --> method = "GET" 
         --> url = "http://localhost/profile_pics/Vulturemox_pic.png" 
t=287810 [st= 0]  URL_REQUEST_DELEGATE [dt=0] 
t=287810 [st= 0]  HTTP_CACHE_GET_BACKEND [dt=0] 
t=287810 [st= 0]  HTTP_CACHE_DOOM_ENTRY [dt=0] 
         --> net_error = -2 (ERR_FAILED) 
t=287810 [st= 0]  +HTTP_CACHE_CREATE_ENTRY [dt=1] 
t=287811 [st= 1]  URL_REQUEST_SET_PRIORITY 
          --> priority = "MEDIUM" 
t=287811 [st= 1]  -HTTP_CACHE_CREATE_ENTRY 
t=287811 [st= 1]  HTTP_CACHE_ADD_TO_ENTRY [dt=0] 
t=287811 [st= 1]  +HTTP_STREAM_REQUEST [dt=0] 
t=287811 [st= 1]  HTTP_STREAM_JOB_CONTROLLER_BOUND 
          --> source_dependency = 17466 (HTTP_STREAM_JOB_CONTROLLER) 
t=287811 [st= 1]  HTTP_STREAM_REQUEST_BOUND_TO_JOB 
          --> source_dependency = 17467 (HTTP_STREAM_JOB) 
t=287811 [st= 1]  -HTTP_STREAM_REQUEST 
t=287811 [st= 1]  +HTTP_TRANSACTION_SEND_REQUEST [dt=0] 
t=287811 [st= 1]  HTTP_TRANSACTION_SEND_REQUEST_HEADERS 
          --> GET /profile_pics/Vulturemox_pic.png HTTP/1.1 
           Host: localhost 
           Connection: keep-alive 
           Pragma: no-cache 
           Cache-Control: no-cache 
           User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36 
           Accept: image/webp,image/apng,image/*,*/*;q=0.8 
           Referer: http://localhost/index.php?login=success 
           Accept-Encoding: gzip, deflate, br 
           Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 
           Cookie: [226 bytes were stripped] 
t=287811 [st= 1]  -HTTP_TRANSACTION_SEND_REQUEST 
t=287811 [st= 1]  +HTTP_TRANSACTION_READ_HEADERS [dt=23907] 
t=287811 [st= 1]  HTTP_STREAM_PARSER_READ_HEADERS [dt=23906] 
          --> net_error = -101 (ERR_CONNECTION_RESET) 
t=311717 [st=23907]  HTTP_TRANSACTION_RESTART_AFTER_ERROR 
          --> net_error = -101 (ERR_CONNECTION_RESET) 
t=311718 [st=23908]  -HTTP_TRANSACTION_READ_HEADERS 
t=311718 [st=23908]  +HTTP_STREAM_REQUEST [dt=2] 
t=311718 [st=23908]  HTTP_STREAM_JOB_CONTROLLER_BOUND 
          --> source_dependency = 17476 (HTTP_STREAM_JOB_CONTROLLER) 
t=311720 [st=23910]  HTTP_STREAM_REQUEST_BOUND_TO_JOB 
          --> source_dependency = 17477 (HTTP_STREAM_JOB) 
t=311720 [st=23910]  -HTTP_STREAM_REQUEST 
t=311721 [st=23911]  +HTTP_TRANSACTION_SEND_REQUEST [dt=0] 
t=311721 [st=23911]  HTTP_TRANSACTION_SEND_REQUEST_HEADERS 
          --> GET /profile_pics/Vulturemox_pic.png HTTP/1.1 
           Host: localhost 
           Connection: keep-alive 
           Pragma: no-cache 
           Cache-Control: no-cache 
           User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36 
           Accept: image/webp,image/apng,image/*,*/*;q=0.8 
           Referer: http://localhost/index.php?login=success 
           Accept-Encoding: gzip, deflate, br 
           Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 
           Cookie: [226 bytes were stripped] 
t=311721 [st=23911]  -HTTP_TRANSACTION_SEND_REQUEST 
t=311721 [st=23911]  +HTTP_TRANSACTION_READ_HEADERS [dt=23907] 
t=311721 [st=23911]  HTTP_STREAM_PARSER_READ_HEADERS [dt=23907] 
          --> net_error = -101 (ERR_CONNECTION_RESET) 
t=335628 [st=47818]  -HTTP_TRANSACTION_READ_HEADERS 
         --> net_error = -101 (ERR_CONNECTION_RESET) 
t=335628 [st=47818] -URL_REQUEST_START_JOB 
         --> net_error = -101 (ERR_CONNECTION_RESET) 
t=335629 [st=47819] URL_REQUEST_DELEGATE [dt=0] 
t=335629 [st=47819] -REQUEST_ALIVE 
        --> net_error = -101 (ERR_CONNECTION_RESET) 

回答

0

嘗試清除Cookie,然後加載頁面。 如果這不起作用,請檢查您的證書。 最有可能是您的證書使用了錯誤的版本,或者您的證書已過期。 此問題已被回答。檢查here

+0

謝謝,現在我啓用了SSL證書並在網址開始時輸入了https,它起作用 – Vulturemox