René's URL Explorer Experiment


Title: feat(server): Gracefully handle oversized batch items instead of aborting the stream by ericallam · Pull Request #3137 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(server): Gracefully handle oversized batch items instead of aborting the stream by ericallam · Pull Request #3137 · triggerdotdev/trigger.dev

X Title: feat(server): Gracefully handle oversized batch items instead of aborting the stream by ericallam · Pull Request #3137 · triggerdotdev/trigger.dev

Description: Gracefully handle oversized batch items instead of aborting the stream. When an NDJSON batch item exceeds the maximum size, the parser now emits an error marker instead of throwing, allowing the batch to seal normally. The oversized item becomes a pre-failed run with PAYLOAD_TOO_LARGE error code, while other items in the batch process successfully. This prevents batchTriggerAndWait from seeing connection errors and retrying with exponential backoff. Also fixes the NDJSON parser not consuming the remainder of an oversized line split across multiple chunks, which caused "Invalid JSON" errors on subsequent lines.

Open Graph Description: Gracefully handle oversized batch items instead of aborting the stream. When an NDJSON batch item exceeds the maximum size, the parser now emits an error marker instead of throwing, allowing the ba...

X Description: Gracefully handle oversized batch items instead of aborting the stream. When an NDJSON batch item exceeds the maximum size, the parser now emits an error marker instead of throwing, allowing the ba...

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

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:a1e77491-0631-7286-d43a-b7966e4779d2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE7C8:EE197:14FECC1:1CA6ABA:6AFB7828
html-safe-nonce5d308e7e57e51a8cfdb9ece9f30b208205aa0019b2ef0c81d7d6864402024c6d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0M4OkVFMTk3OjE0RkVDQzE6MUNBNkFCQTo2QUZCNzgyOCIsInZpc2l0b3JfaWQiOiIyNDM3ODk0NTcyMjUyODIxNTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca0c7462b897f259615d0b06c9541d3635b0951da05f063ea037a04b299295eb5
hovercard-subject-tagpull_request:3332227706
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/3137/files
twitter:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
og:image:altGracefully handle oversized batch items instead of aborting the stream. When an NDJSON batch item exceeds the maximum size, the parser now emits an error marker instead of throwing, allowing the ba...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
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
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/3137/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F3137%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%2F3137%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/3137/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3137/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3137/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
feature/tri-7510-graceful-handling-of-large-batch-item-payloadshttps://github.com/triggerdotdev/trigger.dev/tree/feature/tri-7510-graceful-handling-of-large-batch-item-payloads
Conversation 15 https://github.com/triggerdotdev/trigger.dev/pull/3137
Commits 5 https://github.com/triggerdotdev/trigger.dev/pull/3137/commits
Checks 43 https://github.com/triggerdotdev/trigger.dev/pull/3137/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/3137/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3137/files
feat(server): Gracefully handle oversized batch items instead of aborting the stream https://github.com/triggerdotdev/trigger.dev/pull/3137/files#top
Show all changes 5 commits https://github.com/triggerdotdev/trigger.dev/pull/3137/files
3a2450c feat(server): Graceful handling of large batch item payloads ericallam Feb 26, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3137/commits/3a2450c19040f36a74ea7872a38edf67744c6414
e7a6e77 gracefully handle larger ndjson lines that are chunked to the server … ericallam Feb 26, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3137/commits/e7a6e7794df981a17c14bfb55f66ecfa0c4aa239
c4ca399 added changesets ericallam Feb 26, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3137/commits/c4ca399a9d60e4d514b0aeb24cef8657dc9b2ff1
3a656b7 handle payload serialization in the same way inside the catch ericallam Feb 26, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3137/commits/3a656b7a08babac2a11db0a91a937e36a57c97ed
8117721 Add test to make sure newlines in batch item payloads don't break our… ericallam Feb 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3137/commits/81177218f6f6f03cded6bc37ef3e240b45d982c4
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/3137/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3137/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3137/files
modern-boxes-watch.md https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-7366b8c4a7b49c24de03567fd6382f66d2e48fdbbdaee832281de1aa262209e3
graceful-oversized-batch-items.md https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-9ec8c84a7228346f8a8789e1df7aff65145f3bce1573a413a5727e4b4d2568d8
ailogger-output.log https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-ba95cf14034b5ee3d4f90da4b348669da43ad0f6ee997b66297944b57444850c
SpanPresenter.server.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-2ec287ed9c2eeacfd59aedca84f222ab6084541d64ce39f583f1abf74afed8fd
api.v3.batches.$batchId.items.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-05e3d97bd7ca19b592d26003396b303c5e6840d118d86976f0c3c8f3c1c0135c
route.tsx https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
streamBatchItems.server.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-7653eb5c788470d87c344a8086f3c3ddfcd10c7e8914bb9fc04fc60e8d3b39c6
runEngineHandlers.server.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-445ae0a10c4158c5fcbabaa7bf3eb4761c9c9cc1ebc56c3b1aa0f49d5cc11d9f
streamBatchItems.test.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-639b8aec7a691875d67d686671295427c8de34eadfab1d135dfce3efa061bffc
index.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-7e0fc6a913a9c42fa9df920f846c16fc77bc26073b6393069747b5178848b96f
errors.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-c4b2417966d72d74173d3969959646a7a840b057e102014bc4a17069907e007a
errors.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-f85300d28424755d0824ae90458aed5cd9385be4b9276a4b6c3808b3d536fbfc
common.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-8d5e253d219837b51378b7f1305f40fcc90ccddc19857b5fd7bc60ad5fae7a09
batches.ts https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-e9e3f4c330500da87e2c6d832e88a71926d96dfc6815dbf71395df4843463be4
.changeset/modern-boxes-watch.mdhttps://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-7366b8c4a7b49c24de03567fd6382f66d2e48fdbbdaee832281de1aa262209e3
View file https://github.com/triggerdotdev/trigger.dev/blob/81177218f6f6f03cded6bc37ef3e240b45d982c4/.changeset/modern-boxes-watch.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3137/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3137/files
.server-changes/graceful-oversized-batch-items.mdhttps://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-9ec8c84a7228346f8a8789e1df7aff65145f3bce1573a413a5727e4b4d2568d8
View file https://github.com/triggerdotdev/trigger.dev/blob/81177218f6f6f03cded6bc37ef3e240b45d982c4/.server-changes/graceful-oversized-batch-items.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3137/{{ revealButtonHref }}
ailogger-output.loghttps://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-ba95cf14034b5ee3d4f90da4b348669da43ad0f6ee997b66297944b57444850c
View file https://github.com/triggerdotdev/trigger.dev/blob/81177218f6f6f03cded6bc37ef3e240b45d982c4/ailogger-output.log
Open in desktop https://desktop.github.com
apps/webapp/app/presenters/v3/SpanPresenter.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-2ec287ed9c2eeacfd59aedca84f222ab6084541d64ce39f583f1abf74afed8fd
View file https://github.com/triggerdotdev/trigger.dev/blob/81177218f6f6f03cded6bc37ef3e240b45d982c4/apps/webapp/app/presenters/v3/SpanPresenter.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3137/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-2ec287ed9c2eeacfd59aedca84f222ab6084541d64ce39f583f1abf74afed8fd
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-2ec287ed9c2eeacfd59aedca84f222ab6084541d64ce39f583f1abf74afed8fd
apps/webapp/app/routes/api.v3.batches.$batchId.items.tshttps://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-05e3d97bd7ca19b592d26003396b303c5e6840d118d86976f0c3c8f3c1c0135c
View file https://github.com/triggerdotdev/trigger.dev/blob/81177218f6f6f03cded6bc37ef3e240b45d982c4/apps/webapp/app/routes/api.v3.batches.%24batchId.items.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3137/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-05e3d97bd7ca19b592d26003396b303c5e6840d118d86976f0c3c8f3c1c0135c
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-05e3d97bd7ca19b592d26003396b303c5e6840d118d86976f0c3c8f3c1c0135c
...zationSlug.projects.$projectParam.env.$envParam.runs.$runParam.spans.$spanParam/route.tsxhttps://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
View file https://github.com/triggerdotdev/trigger.dev/blob/81177218f6f6f03cded6bc37ef3e240b45d982c4/apps/webapp/app/routes/resources.orgs.%24organizationSlug.projects.%24projectParam.env.%24envParam.runs.%24runParam.spans.%24spanParam/route.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3137/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
https://github.com/triggerdotdev/trigger.dev/pull/3137/files#diff-1c25b5c03a2e222200b6b0170c89885015f7f0cbb372f0326e07f0dfbdad7b25
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3137/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.