PageSourceSearch

https://wiwi.digital/_nuxt/BvHPH-oR.js

js wiwi.digital collected 2026-10-07 05:06:49 UTC 4,709 bytes, 15 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a10d52-43ba-7a31-a768-a221996774cc")}catch(e){}}();import{A as E,c as i,a as e,b as u,F as v,k,d as R,r as C,o as a,n as F,t as c,g as _}from"./Bbd6kIXc.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new n.Error().stack;d&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[d]="18aed7e9-48c9-4a5d-af2e-2171ca4b3420",n._sentryDebugIdIdentifier="sentry-dbid-18aed7e9-48c9-4a5d-af2e-2171ca4b3420")}catch{}})();const N={class:"p-8"},S={class:"mx-auto max-w-2xl space-y-6"},z={key:0,class:"rounded bg-white p-4 shadow"},A={class:"space-y-2 text-sm"},O={class:"font-medium"},T={key:0,class:"text-yellow-700"},D={key:1,class:"text-green-700"},P={__name:"filtered-errors",setup(n){const d=C([]),{captureError:g,shouldCaptureToPostHog:b}=E();function o(r,t,s){const l=!b(r,t);d.value.push({type:s,message:r.message,filtered:l}),g(r,{source:"filtered-errors-test",statusCode:t,context:`testing-${s}`})}function f(){const r=new Error("Unauthorized - please login");o(r,401,"401 Unauthorized")}function p(){const r=new Error("Forbidden - access denied");o(r,403,"403 Forbidden")}function y(){const r=new Error("Resource not found");o(r,404,"404 Not Found")}function m(){const r=new Error("Network Error - failed to fetch");o(r,void 0,"Network Error")}function x(){const r=new Error("Request aborted by user");r.name="AbortError",o(r,void 0,"AbortError")}function w(){const r=new Error("ResizeObserver loop completed with undelivered notifications");o(r,void 0,"ResizeObserver")}function h(){const r=new Error("Script error.");o(r,void 0,"Script error")}return(r,t)=>(a(),i("div",N,[t[5]||(t[5]=e("h1",{class:"mb-4 text-center text-xl font-bold"}," Cost Control: Filtered Errors ",-1)),t[6]||(t[6]=e("p",{class:"mb-8 text-center text-gray-600"}," These errors are sent to Sentry but filtered from PostHog to reduce costs ",-1)),e("div",S,[e("section",{class:"rounded border border-yellow-200 bg-yellow-50 p-4"},[t[0]||(t[0]=e("h2",{class:"mb-4 font-semibold text-yellow-800"}," Filtered Status Codes ",-1)),e("div",{class:"grid grid-cols-3 gap-4"},[e("button",{class:"rounded bg-gray-500 p-3 text-sm text-white hover:bg-gray-600",onClick:f}," 401 Unauthorized "),e("button",{class:"rounded bg-gray-500 p-3 text-sm text-white hover:bg-gray-600",onClick:p}," 403 Forbidden "),e("button",{class:"rounded bg-gray-500 p-3 text-sm text-white hover:bg-gray-600",onClick:y}," 404 Not Found ")]),t[1]||(t[1]=e("p",{class:"mt-3 text-xs text-yellow-700"}," These are filtered because they're either handled by auth redirects or are high-volume non-actionable errors. ",-1))]),e("section",{class:"rounded border border-yellow-200 bg-yellow-50 p-4"},[t[2]||(t[2]=e("h2",{class:"mb-4 font-semibold text-yellow-800"}," Filtered Error Patterns ",-1)),e("div",{class:"grid grid-cols-2 gap-4"},[e("button",{class:"rounded bg-gray-500 p-3 text-sm text-white hover:bg-gray-600",onClick:m}," Network Error "),e("button",{class:"rounded bg-gray-500 p-3 text-sm text-white hover:bg-gray-600",onClick:x}," Request Aborted "),e("button",{class:"rounded bg-gray-500 p-3 text-sm text-white hover:bg-gray-600",onClick:w}," ResizeObserver loop "),e("button",{class:"rounded bg-gray-500 p-3 text-sm text-white hover:bg-gray-600",onClick:h}," Script error ")]),t[3]||(t[3]=e("p",{class:"mt-3 text-xs text-yellow-700"}," These are filtered because they're non-actionable (user offline, navigated away, browser quirks). ",-1))]),u(d).length?(a(),i("section",z,[t[4]||(t[4]=e("h2",{class:"mb-4 font-semibold"}," Results ",-1)),e("ul",A,[(a(!0),i(v,null,k(u(d),(s,l)=>(a(),i("li",{key:l,class:F(["rounded p-2",s.filtered?"bg-yellow-100":"bg-green-100"])},[e("span",O,c(s.type)+":",1),_(" "+c(s.message)+" ",1),s.filtered?(a(),i("span",T,"(Filtered from PostHog)")):(a(),i("span",D,"(Sent to both)"))],2))),128))])])):R("",!0)]),t[7]||
1(t[7]=e("div",{class:"mx-auto mt-8 max-w-2xl rounded bg-gray-100 p-4"},[e("h3",{class:"mb-2 font-semibold"}," Filtering Logic (useErrorCapture.ts): "),e("pre",{class:"overflow-x-auto rounded bg-gray-800 p-3 text-xs text-gray-100"},`// Filtered status codes
2const IGNORED_STATUS_CODES = [401, 403, 404]
3
4// Filtered error patterns
5const IGNORED_ERROR_PATTERNS = [
6  'Network Error',
7  'Request aborted',
8  'AbortError',
9  'ResizeObserver loop',
10  'Script error',
11  'Load failed',
12]`)],-1))]))}};export{P as default};
13//# sourceMappingURL=BvHPH-oR.js.map
14
15//# chunkId=01a10d52-43ba-7a31-a768-a221996774cc

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.