-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
panic when use gin and rod, Failed to get the debug url and Opening in existing browser session,detail see following #665
Comments
#664 i try my best to follow #332 and follow the second rule of #332 If the long code block is not syntax highlighted with markdown i dont know what the code block is not syntax highlighted with ... means, i just follow others issue template. and i try to use two * to surround my long code,but it has no effect |
Please check the first rule of #322 |
You should code like this: func rodhandle() {
u := launcher.New().
Headless(false).
MustLaunch()
b := rod.New().ControlURL(u).MustConnect().Trace(true)
defer b.MustClose()
browser := b.MustIncognito()
page := stealth.MustPage(browser)
defer page.MustClose()
page.MustNavigate("https://google.com/")
page.MustWaitLoad()
} |
@passerbyo as a general rule for being polite, please don't randomly mention people in your issues. I have no real involvement with the project and I'm not even sure where you got my username from. Thanks |
@passerbyo The #322 says
|
ok,i got it.thanks very much. |
i am very sorry for the convenience i caused for you.Maybe I accidentally clicked |
Rod Version: v0.108.1
The code to demonstrate your question
i got a bug. here is my go code
i use command
curl http://127.0.0.1/run
to run code.second time to access /run url will see and panic
What you got
when i run my code with
go run main.go
andcurl http:127.0.0.1:8080/run
at second time, the shell shows my following log,panic: [launcher] Failed to get the debug url: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) Opening in existing browser session. [0722/023228.007212:ERROR:nacl_helper_linux.cc(315)] NaCl helper process running without a sandbox! Most likely you need to configure your SUID sandbox correctly
What you expected to see
when i
curl http:127.0.0.1:8080/run
and xode runs normallyWhat have you tried to solve the question
I'm relatively new to Go, I haven't tried to hack Rod, I have no clue on where to look
The text was updated successfully, but these errors were encountered: