Skip to content

json解析报错处理#1186

Open
lcbat2 wants to merge 2 commits intogo-rod:mainfrom
lcbat2:main
Open

json解析报错处理#1186
lcbat2 wants to merge 2 commits intogo-rod:mainfrom
lcbat2:main

Conversation

@lcbat2
Copy link
Copy Markdown

@lcbat2 lcbat2 commented Apr 30, 2025

解析如下报错:
panic: unexpected end of JSON input

goroutine 10 [running]:
github.com/go-rod/rod/lib/utils.init.func2({0xfbdb20?, 0xc000226cf0?})
C:/Users/admin/go/pkg/mod/github.com/go-rod/rod@v0.116.2/lib/utils/utils.go:68 +0x1d
github.com/go-rod/rod/lib/utils.E(...)
C:/Users/admin/go/pkg/mod/github.com/go-rod/rod@v0.116.2/lib/utils/utils.go:74
github.com/go-rod/rod/lib/cdp.(*Client).consumeMessages(0xc0001b4180)
C:/Users/admin/go/pkg/mod/github.com/go-rod/rod@v0.116.2/lib/cdp/client.go:148 +0x13b
created by github.com/go-rod/rod/lib/cdp.(*Client).Start in goroutine 7
C:/Users/admin/go/pkg/mod/github.com/go-rod/rod@v0.116.2/lib/cdp/client.go:76 +0x7a

@budyaya budyaya mentioned this pull request May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant