mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-21 02:43:25 +01:00
Chromium creates `TypeError: Failed to fetch` with no stack frames, and the browser error monitor removes the SDK Breadcrumbs integration, so nothing wraps fetch to add a call site. An unhandled network rejection reached Sentry with no caller. Once monitoring starts, wrap window.fetch once. Only on rejection, classify the call-site stack as app, extension, other or unknown, keyed by the rejected value in a WeakMap. Tag unhandled object rejections with browser_fetch_initiator and browser_fetch_wrapper. No URL, path or stack text is sent. The returned promise rethrows the identical value, so a dropped promise is still reported. Diagnostics only; this does not fix the underlying rejection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>