Why was the request canceled

1,005 views
Skip to first unread message

jala...@gmail.com

unread,
Jun 15, 2017, 12:53:32 PM6/15/17
to headless-dev
HI,

i am just working with headless chrome and monitoring Network level events. I see some loading LoadingFailed events coming through with canceled set to true and no errorText. How can i get further information about why this has failed. Note that i have decorated the LoadingFailed event with additional parameters below.


  profile.detail {"requestId":"1075.50","timestamp":187053.785936,"type":"Other","errorText":"","canceled":true,"eventType":"loadingFailed","timeInMs":1497544618784} +3ms


Here is the original request

  profile.detail {"requestId":"1075.50","frameId":"1075.1","loaderId":"1075.21","documentURL":"http://star.cl.test.pageload.io/assets/js/plugins/waypoints/waypoints.min.js","request":{"url":"http://star.cl.test.pageload.io/assets/js/plugins/waypoints/waypoints.min.js","method":"GET","headers":{"Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/61.0.3127.0 Safari/537.36","x-pageload-origin":"http://www.socialability.com.au:80"},"mixedContentType":"none","initialPriority":"VeryHigh","referrerPolicy":"no-referrer-when-downgrade"},"timestamp":187053.775216,"wallTime":1497544618.77178,"initiator":{"type":"other"},"type":"Document","eventType":"requestWillBeSent","timeInMs":1497544618775} +3ms


Can i turn on more debugging on the headless server

cheers
</jima>

Eric Seckler

unread,
Jun 19, 2017, 5:02:02 AM6/19/17
to jala...@gmail.com, headless-dev
Hm, you could try capturing a trace, maybe you can spot the cause in it. When I try to access the URL in the original request, it looks like a 404. But I'm not sure whether that's the reason the request was cancelled - I'd have expected a 404 response. You can also try reaching out to loading-dev@.

Do you have a way for us to reproduce this problem?

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/b73ada90-af73-4199-ba6e-22b25b28a41b%40chromium.org.

jala...@gmail.com

unread,
Jun 19, 2017, 5:14:13 PM6/19/17
to headless-dev, jala...@gmail.com
Eric, thanks for the reply. I don't have an easy way to reproduce the problem at the moment but i will try some of your suggestions. I would have expected a bit more information in the loadingFailed event to indicate a 404 or something similar.

jala...@gmail.com

unread,
Jun 19, 2017, 5:17:12 PM6/19/17
to headless-dev, jala...@gmail.com
I have a few more events below. Notice that how request 36.1671 has 2 repsonseReceived events. The events are identical and was curious whether it was an error.


  profile.detail {"requestId":"36.1671","frameId":"36.1","loaderId":"36.363","documentURL":"http://star.cl.test.pageload.io/font-awesome/4.6.0/fonts/fontawesome-webfont.woff2?v=4.6.0","request":{"url":"http://star.cl.test.pageload.io/font-awesome/4.6.0/fonts/fontawesome-webfont.woff2?v=4.6.0","method":"GET","headers":{"Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/61.0.3133.0 Safari/537.36","x-pageload-origin":"http://maxcdn.bootstrapcdn.com"},"mixedContentType":"none","initialPriority":"VeryHigh","referrerPolicy":"no-referrer-when-downgrade"},"timestamp":234467.251906,"wallTime":1497906460.63598,"initiator":{"type":"other"},"type":"Document","eventType":"requestWillBeSent","timeInMs":1497906460637} +1s

  profile.detail {"requestId":"36.1671","frameId":"36.1","loaderId":"36.363","timestamp":234467.794198,"type":"Document","response":{"url":"http://star.cl.test.pageload.io/font-awesome/4.6.0/fonts/fontawesome-webfont.woff2?v=4.6.0","status":200,"statusText":"OK","headers":{"Date":"Mon, 19 Jun 2017 21:07:41 GMT","last-modified":"Mon, 11 Apr 2016 18:25:54 GMT","Server":"nginx","x-hello-human":"Say hello back! @getBootstrapCDN on Twitter","ETag":"\"1c3-IFk3IbmOM6xJhEZQ01Th4A\"","vary":"Accept-Encoding","x-cache":"HIT","Content-Type":"application/font-woff2","access-control-allow-origin":"*","cache-control":"max-age=31104000","transfer-encoding":"chunked","x-amz-meta-version-id":"Bu5GqaS4DGENaLysgg0LybOu_9oQNgnz","Connection":"keep-alive","expires":"Mon, 11 Jun 2018 17:16:05 GMT"},"mimeType":"application/font-woff2","connectionReused":true,"connectionId":4626,"remoteIPAddress":"52.62.248.69","remotePort":80,"fromDiskCache":false,"fromServiceWorker":false,"encodedDataLength":502,"timing":{"requestTime":234467.25237,"proxyStart":-1,"proxyEnd":-1,"dnsStart":-1,"dnsEnd":-1,"connectStart":-1,"connectEnd":-1,"sslStart":-1,"sslEnd":-1,"workerStart":-1,"workerReady":-1,"sendStart":0.581000000238419,"sendEnd":0.632999988738447,"pushStart":0,"pushEnd":0,"receiveHeadersEnd":539.874000009149},"protocol":"http/1.1","securityState":"neutral"},"eventType":"responseReceived","timeInMs":1497906461180} +544ms

  profile.detail {"requestId":"36.1671","frameId":"36.1","loaderId":"36.363","timestamp":234467.794257,"type":"Document","response":{"url":"http://star.cl.test.pageload.io/font-awesome/4.6.0/fonts/fontawesome-webfont.woff2?v=4.6.0","status":200,"statusText":"OK","headers":{"Date":"Mon, 19 Jun 2017 21:07:41 GMT","last-modified":"Mon, 11 Apr 2016 18:25:54 GMT","Server":"nginx","x-hello-human":"Say hello back! @getBootstrapCDN on Twitter","ETag":"\"1c3-IFk3IbmOM6xJhEZQ01Th4A\"","vary":"Accept-Encoding","x-cache":"HIT","Content-Type":"application/font-woff2","access-control-allow-origin":"*","cache-control":"max-age=31104000","transfer-encoding":"chunked","x-amz-meta-version-id":"Bu5GqaS4DGENaLysgg0LybOu_9oQNgnz","Connection":"keep-alive","expires":"Mon, 11 Jun 2018 17:16:05 GMT"},"mimeType":"application/font-woff2","connectionReused":true,"connectionId":4626,"remoteIPAddress":"52.62.248.69","remotePort":80,"fromDiskCache":false,"fromServiceWorker":false,"encodedDataLength":502,"timing":{"requestTime":234467.25237,"proxyStart":-1,"proxyEnd":-1,"dnsStart":-1,"dnsEnd":-1,"connectStart":-1,"connectEnd":-1,"sslStart":-1,"sslEnd":-1,"workerStart":-1,"workerReady":-1,"sendStart":0.581000000238419,"sendEnd":0.632999988738447,"pushStart":0,"pushEnd":0,"receiveHeadersEnd":539.874000009149},"protocol":"http/1.1","securityState":"neutral"},"eventType":"responseReceived","timeInMs":1497906461182} +1ms

Reply all
Reply to author
Forward
0 new messages