wAnFen
wAnFen
我也遇到这个问题了
> 用法的问题,create 里处理 auth 如果改成在create中处理时则会报 panic: {-32000 Invalid state for continueInterceptedRequest } ``` create := func() *rod.Browser { go browser.MustHandleAuth(user, pwd)() return browser.MustIncognito() } ```
> 如果在外围处理,需要处理每个 auth 事件,browser.MustHandleAuth 只处理碰到的第一个,你看看它的源代码就懂了 我在每个goroutine中做处理不可实现吗,或者如果在外围统一处理的话,我查到是使用EachEvent去控制全部活动,我改成这样,依旧报错 panic: {-32000 Invalid state for continueInterceptedRequest } ```go go browser.EachEvent(func(e *proto.FetchAuthRequired) { fakeAuth := &proto.FetchAuthChallengeResponse{ Response: proto.FetchAuthChallengeResponseResponseProvideCredentials, Username: user, Password: pwd, } err :=...
我看了您另外的一个回答 https://github.com/go-rod/rod/issues/654 ,我感觉我和他的问题应该是差不多的,但是我这里使用了BrowserPool,所以我猜测是不是BrowserPool的问题,以下是我的完整代码,此时报错信息是 navigation failed: net::ERR_INVALID_AUTH_CREDENTIALS ``` // Package main // @Time : 2023-12-06 09:47 // @Author : wAnFen // @File : render.go // @Go : 1.21.3 package main import...
> following code is worked > > 1. create page > 2. auth handle > > ```go > browser.Page(proto.TargetCreateTarget{}) > go browser.MustHandleAuth(username, password)() > ``` Thank you for your answer....
作者大大能早日支持3.11版本吗
修改 downloadermiddlewares.py中的378行 headers=response.headers, 改为 headers=headers, 作者在380-382行已经修复了这个问题,但是居然没有引用处理后的headers
windows下无法运行吗
Sorry for my reckless response. I am in a Windows environment, and my own Google browser can make normal requests, but it cannot be successful in Playwright's Firefox. It has...
That's right, I'm looking for a solution to crack it. If I find it, I will share it here