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

rod try on hijack requests #639

Closed
musicyin opened this issue Jun 29, 2022 · 2 comments
Closed

rod try on hijack requests #639

musicyin opened this issue Jun 29, 2022 · 2 comments
Labels
needs info The description is not enough to tackle the problem question Questions related to rod

Comments

@musicyin
Copy link

musicyin commented Jun 29, 2022

Minimal Code:

router := browser.HijackRequests()
router.MustAdd("*somethinghavetimeout*", func(ctx *rod.Hijack) {
		ctx.MustLoadResponse()
})
go router.Run()

Got error
panic: Get "somethinghavetimeout**": dial tcp websiteip:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
How to retry and not panic?

Rod Version: v0.107.2

@musicyin musicyin added the question Questions related to rod label Jun 29, 2022
@rod-robot
Copy link

Please fix the format of your markdown:

3 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]

generated by check-issue

@ysmood
Copy link
Collaborator

ysmood commented Jun 29, 2022

#322

@ysmood ysmood closed this as completed Jun 29, 2022
@ysmood ysmood added the needs info The description is not enough to tackle the problem label Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info The description is not enough to tackle the problem question Questions related to rod
Projects
None yet
Development

No branches or pull requests

3 participants