Skip to content
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

stream error: stream ID 1; INTERNAL_ERROR; received from peer #600

Closed
aadog opened this issue May 8, 2022 · 6 comments
Closed

stream error: stream ID 1; INTERNAL_ERROR; received from peer #600

aadog opened this issue May 8, 2022 · 6 comments
Labels
question Questions related to rod

Comments

@aadog
Copy link

aadog commented May 8, 2022

Rod Version: v0.106.6-0.20220507105211-27a23eccf51a

The code to demonstrate your question

	p, _ := launcher.LookPath()
	u := launcher.New().Bin(p).Headless(false).MustLaunch()
	browser := rod.New().ControlURL(u).MustConnect()
	router := browser.HijackRequests()
	router.MustAdd("*", func(ctx *rod.Hijack) {
		ctx.MustLoadResponse()
	})
	go router.Run()
	browser.MustPage("https://www.baidu.com")
	for {
		time.Sleep(time.Second)
	}

What have you tried to solve the question

panic: stream error: stream ID 1; INTERNAL_ERROR; received from peer

goroutine 74 [running]:
github.com/go-rod/rod/lib/utils.glob..func2({0x9498e0, 0xc00041c018})
C:/Users/pwt/go/pkg/mod/github.com/go-rod/rod@v0.106.6-0.20220507105211-27a23eccf51a/lib/utils/utils.go:59 +0x25
github.com/go-rod/rod.genE.func1({0xc00009a4f0, 0x1, 0x1})
C:/Users/pwt/go/pkg/mod/github.com/go-rod/rod@v0.106.6-0.20220507105211-27a23eccf51a/must.go:35 +0x106
github.com/go-rod/rod.(*Hijack).MustLoadResponse(0xc00060e080)
C:/Users/pwt/go/pkg/mod/github.com/go-rod/rod@v0.106.6-0.20220507105211-27a23eccf51a/must.go:1060 +0xe8
main.main.func1(0xc00060e080)
C:/Users/pwt/src/awesomeProject/main.go:15 +0x1e
github.com/go-rod/rod.(*HijackRouter).initEvents.func1.1()
C:/Users/pwt/go/pkg/mod/github.com/go-rod/rod@v0.106.6-0.20220507105211-27a23eccf51a/hijack.go:75 +0x173
created by github.com/go-rod/rod.(*HijackRouter).initEvents.func1
C:/Users/pwt/go/pkg/mod/github.com/go-rod/rod@v0.106.6-0.20220507105211-27a23eccf51a/hijack.go:68 +0xe5

@aadog aadog added the question Questions related to rod label May 8, 2022
@aadog
Copy link
Author

aadog commented May 8, 2022

How to get the response value and modify it

@aadog
Copy link
Author

aadog commented May 8, 2022

And how to set the return of [] byte type

@ysmood
Copy link
Member

ysmood commented May 8, 2022

Don't put two unrelated questions into one issue

@aadog
Copy link
Author

aadog commented May 9, 2022

ok

@ysmood
Copy link
Member

ysmood commented May 20, 2022

I think it's an upstream issue related to #395

@ysmood ysmood closed this as completed Aug 4, 2022
@ysmood ysmood reopened this Aug 4, 2022
@ysmood
Copy link
Member

ysmood commented Aug 4, 2022

#672 (comment)

@ysmood ysmood closed this as completed Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

2 participants