Skip to content

fix(runtime): raise ResultTooDeepError when a result exceeds Chrome's CBOR depth limit - #705

Merged
route merged 1 commit into
mainfrom
fix/deep-result-error
Nov 15, 2026
Merged

route merged 1 commit into
mainfrom
fix/deep-result-error

Conversation

@route

@route route commented Nov 15, 2026

Copy link
Copy Markdown
Member

Chrome's deep serialization fails past about 96 levels of nesting (CBOR stack limit). evaluate surfaced that as an opaque BrowserError: "Failed to convert response to JSON: CBOR: stack limit exceeded".

It now raises Ferrum::ResultTooDeepError, a BrowserError subclass whose message says the result is nested too deeply and to return less of it or use evaluate_handle. Other BrowserErrors are re-raised unchanged.

@route
route merged commit c513f69 into main Nov 15, 2026
7 checks passed
@route
route deleted the fix/deep-result-error branch November 15, 2026 15:25
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.

1 participant