René's URL Explorer Experiment


Title: fix: improve error labelling, grouping, and stack traces in the Errors feature by matt-aitken · Pull Request #4225 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix: improve error labelling, grouping, and stack traces in the Errors feature by matt-aitken · Pull Request #4225 · triggerdotdev/trigger.dev

X Title: fix: improve error labelling, grouping, and stack traces in the Errors feature by matt-aitken · Pull Request #4225 · triggerdotdev/trigger.dev

Description: Problem Several display/grouping issues in the Errors feature, all rooted in how the ClickHouse error materialized views (errors_mv_v1, error_occurrences_mv_v1) read the stored error JSON produced by parseError: Messageless errors show "Unknown error". An empty message falls straight through coalesce(nullIf(message,''), 'Unknown error') to the literal, even though the error's class name is available (e.g. an Effect tagged error ListMessagesError with no message). Unrelated errors collapse into one group. calculateErrorFingerprint keys on type : message : stack, where type is always the union tag (BUILT_IN_ERROR, …), message is empty, and the stack isn't read — so every messageless built-in error (and every string/custom error) hashes to the same constant input → one fingerprint. error_type shows the internal tag. coalesce(type, name, …) always resolves to type (always present), so the column shows BUILT_IN_ERROR instead of the real class name. Stack traces never populate. The MVs read error.data.stack, but the serializer stores the trace under stackTrace — so the column is always empty. Fix All display changes are ALTER TABLE … MODIFY QUERY on the two views (migration 035); the fingerprint change is in the webapp. Fingerprint (errorFingerprinting.ts): fall back message → name → raw. Messageless errors now group by class name (or raw value for non-Error throws); message-bearing errors are unchanged (short-circuits at message), so existing groups don't split — only currently-messageless errors get their own group going forward. error_message: same message → name → raw fallback before 'Unknown error'. error_type: coalesce name → code → 'Error' (drops the reliance on the union tag). Built-in → class name, internal → code, string/custom → Error. stack trace: read error.data.stackTrace. Bounded as before (serializer caps 50 frames / 1024 chars per line; MV clips to 2000 chars). Migration notes MODIFY QUERY swaps the view query in place (no drop/recreate gap); Down restores the previous query. Existing rows are left unchanged — changes apply only to rows inserted after the migration. No backfill. Tests errorFingerprinting.test.ts — 57 pass, incl. new cases for messageless class names, string/custom raw values, and stability of message-bearing fingerprints. Fixes the display-derivation half of TRI-11938 (error_type + stack trace); relates to TRI-9254 and TRI-9250.

Open Graph Description: Problem Several display/grouping issues in the Errors feature, all rooted in how the ClickHouse error materialized views (errors_mv_v1, error_occurrences_mv_v1) read the stored error JSON produced ...

X Description: Problem Several display/grouping issues in the Errors feature, all rooted in how the ClickHouse error materialized views (errors_mv_v1, error_occurrences_mv_v1) read the stored error JSON produced ...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4225

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:79d37031-805a-3b2f-b389-398fe408536b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9B30:3BE450:65B0E:8D433:6AFB0A24
html-safe-noncea227d06557ddb73c1405ce990ebad8dd9daab31f4598e1bf86793a7d3e05cfef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjMwOjNCRTQ1MDo2NUIwRTo4RDQzMzo2QUZCMEEyNCIsInZpc2l0b3JfaWQiOiI4NzcyMTM2OTYzNDQxMTAxMzQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac64db79f5e2c93801b0399eb2ed5951068f89de05e598aa70d0f1f827e04f57b5
hovercard-subject-tagpull_request:4029810891
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4225/files
twitter:imagehttps://avatars.githubusercontent.com/u/10635986?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10635986?s=400&v=4
og:image:altProblem Several display/grouping issues in the Errors feature, all rooted in how the ClickHouse error materialized views (errors_mv_v1, error_occurrences_mv_v1) read the stored error JSON produced ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None76fb13cb43f1834708971f45a9cfcab5df3177a7582086613d7cdc6e98c4bfde
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseafc998826cdd963c8f91a96ae5372809ab5e296b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4225/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4225%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4225%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
matt-aitkenhttps://github.com/matt-aitken
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
fix/errors-message-fallbackhttps://github.com/triggerdotdev/trigger.dev/tree/fix/errors-message-fallback
Conversation 14 https://github.com/triggerdotdev/trigger.dev/pull/4225
Commits 1 https://github.com/triggerdotdev/trigger.dev/pull/4225/commits
Checks 55 https://github.com/triggerdotdev/trigger.dev/pull/4225/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4225/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
fix: improve error labelling, grouping, and stack traces in the Errors feature https://github.com/triggerdotdev/trigger.dev/pull/4225/files#top
Show all changes 1 commit https://github.com/triggerdotdev/trigger.dev/pull/4225/files
b7efc4e fix: label and group errors without a message by their name matt-aitken Jul 10, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4225/commits/b7efc4eb10cb2646e991ec9a2f9f0c672d5daf92
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4225/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
errors-message-fallback.md https://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-143b7189a7da75e9bdbfc9dc90398075bee79592e8be966bcda82e114c9c95e3
errorFingerprinting.ts https://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-dec47e1b87cc00a9341d233241843ad3cf102b0ed6749a476b849332469de7d9
errorFingerprinting.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-57a59c480ab80efefca631e75bb8e3d6d4527d8d10e34d68067c0d8be8132ce6
035_fix_error_display_derivation.sql https://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-927306933f4245456a3d25192399ab23ecc05cc1beb11ffb8c0aa0d58a42671a
.server-changes/errors-message-fallback.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-143b7189a7da75e9bdbfc9dc90398075bee79592e8be966bcda82e114c9c95e3
View file https://github.com/triggerdotdev/trigger.dev/blob/b7efc4eb10cb2646e991ec9a2f9f0c672d5daf92/.server-changes/errors-message-fallback.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4225/{{ revealButtonHref }}
apps/webapp/app/utils/errorFingerprinting.tshttps://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-dec47e1b87cc00a9341d233241843ad3cf102b0ed6749a476b849332469de7d9
View file https://github.com/triggerdotdev/trigger.dev/blob/b7efc4eb10cb2646e991ec9a2f9f0c672d5daf92/apps/webapp/app/utils/errorFingerprinting.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4225/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-dec47e1b87cc00a9341d233241843ad3cf102b0ed6749a476b849332469de7d9
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
https://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-dec47e1b87cc00a9341d233241843ad3cf102b0ed6749a476b849332469de7d9
apps/webapp/test/errorFingerprinting.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-57a59c480ab80efefca631e75bb8e3d6d4527d8d10e34d68067c0d8be8132ce6
View file https://github.com/triggerdotdev/trigger.dev/blob/b7efc4eb10cb2646e991ec9a2f9f0c672d5daf92/apps/webapp/test/errorFingerprinting.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4225/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-57a59c480ab80efefca631e75bb8e3d6d4527d8d10e34d68067c0d8be8132ce6
internal-packages/clickhouse/schema/035_fix_error_display_derivation.sqlhttps://github.com/triggerdotdev/trigger.dev/pull/4225/files#diff-927306933f4245456a3d25192399ab23ecc05cc1beb11ffb8c0aa0d58a42671a
View file https://github.com/triggerdotdev/trigger.dev/blob/b7efc4eb10cb2646e991ec9a2f9f0c672d5daf92/internal-packages/clickhouse/schema/035_fix_error_display_derivation.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4225/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4225/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.