wirepair / gcd

Unofficial implementation of the Google Chrome Remote Debugger in Go
MIT License
186 stars 31 forks source link

invalid memory address or nil pointer dereference #61

Closed T200proX7 closed 2 years ago

T200proX7 commented 2 years ago
obj, _, _ := target.Runtime.EvaluateWithParams(&gcdapi.RuntimeEvaluateParams{Expression: `(async function() { ret = await fetch(my_url); r = await ret.json(); return JSON.stringify(r); })();`, AwaitPromise: true})
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x6a3485]

goroutine 464 [running]:
main.process.func1(0xc01dffa000, {0x0?, 0x0?, 0x0?})
        /home/myuser/projects/golang-gcdapi/main.go:125 +0x205
created by github.com/wirepair/gcd.(*ChromeTarget).dispatchResponse
        /home/myuser/go/pkg/mod/github.com/wirepair/gcd@v1.0.15/chrome_target.go:349 +0x3ed