go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5.42k stars 356 forks source link

Nill Response.Timing for any sites #1129

Open Qedr1 opened 1 month ago

Qedr1 commented 1 month ago

Rod Version: v0.116.2

Question

Most of all sites Response Timing is not nill. But, I have any sites, where Response Timing is nil always. For example: opennet.ru

How I can fix it? Thx

The code to demonstrate for question

    go page.EachEvent(func(e *proto.NetworkResponseReceived) {
            if e.Response.Timing==nil {
                      fmt.Printlb("nil")
             } else {
                      fmt.Printlb("ok")
             }
        }
github-actions[bot] commented 1 month ago

Please fix the golang code in your markdown:

@@ golang markdown block 1 @@
10:10: missing ',' before newline in argument list
11:1: expected operand, found '}'
11:2: expected ')', found 'EOF'
11:2: expected ';', found 'EOF'
11:2: expected ';', found 'EOF'
11:2: expected '}', found 'EOF'
11:2: missing ',' in argument list

generated by check-issue

ysmood commented 1 month ago

I think it a upstream with chromium itself.