Skip to content

fix: error EPROTOCOL is retriable#775

Merged
Kikobeats merged 1 commit into
masterfrom
eprotocol
Jun 3, 2026
Merged

fix: error EPROTOCOL is retriable#775
Kikobeats merged 1 commit into
masterfrom
eprotocol

Conversation

@Kikobeats
Copy link
Copy Markdown
Member

@Kikobeats Kikobeats commented Jun 3, 2026

Note

Low Risk
Narrows retry behavior to a known error code with a matching test; no auth or data paths touched.

Overview
withPage now treats Chrome DevTools protocol failures (EPROTOCOL) as transient, alongside existing context disconnect retries (EBRWSRCONTEXTCONNRESET). On those errors it recreates the browser context and retries via p-retry instead of failing immediately.

A unit test asserts that a first-attempt protocolError (e.g. “Target closed”) is retried and succeeds on the second attempt.

Reviewed by Cursor Bugbot for commit 820703f. Bugbot is set up for automated code reviews on this repo. Configure here.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 75.863% (+0.02%) from 75.848% — eprotocol into master

@Kikobeats Kikobeats merged commit 3231e35 into master Jun 3, 2026
22 checks passed
@Kikobeats Kikobeats deleted the eprotocol branch June 3, 2026 11:20
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.

2 participants