Skip to content

json解析报错处理 #1186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

json解析报错处理 #1186

wants to merge 2 commits into from

Conversation

lcbat2
Copy link

@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/[email protected]/lib/utils/utils.go:68 +0x1d
github.com/go-rod/rod/lib/utils.E(...)
C:/Users/admin/go/pkg/mod/github.com/go-rod/[email protected]/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/[email protected]/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/[email protected]/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