René's URL Explorer Experiment


Title: fix(backend): handle Gitea ERR_STREAM_PREMATURE_CLOSE during sync by brendan-kellam · Pull Request #1405 · sourcebot-dev/sourcebot · GitHub

Open Graph Title: fix(backend): handle Gitea ERR_STREAM_PREMATURE_CLOSE during sync by brendan-kellam · Pull Request #1405 · sourcebot-dev/sourcebot

X Title: fix(backend): handle Gitea ERR_STREAM_PREMATURE_CLOSE during sync by brendan-kellam · Pull Request #1405 · sourcebot-dev/sourcebot

Description: Sourcebot is a self-hosted tool that helps humans and agents understand your codebase. - fix(backend): handle Gitea ERR_STREAM_PREMATURE_CLOSE during sync by brendan-kellam · Pull Request #1405 · sourcebot-dev/sourcebot

Open Graph Description: Fixes SOU-1484 Fixes #1404 Syncing repos from some self-hosted Gitea instances fails when cross-fetch can't read the API response body (ERR_STREAM_PREMATURE_CLOSE). repoGet() then returns { dat...

X Description: Fixes SOU-1484 Fixes #1404 Syncing repos from some self-hosted Gitea instances fails when cross-fetch can't read the API response body (ERR_STREAM_PREMATURE_CLOSE). repoGet() then returns {...

Opengraph URL: https://github.com/sourcebot-dev/sourcebot/pull/1405

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:fa3b8791-0da3-06d0-4b37-93808ccbefe7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8BD8:1C4EB2:4A98B1:62AD57:6A4D3236
html-safe-noncef71110586fc282de5666c5d9f34d2eb8e4c0cf78f39c627c7d1b551656b6ef22
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkQ4OjFDNEVCMjo0QTk4QjE6NjJBRDU3OjZBNEQzMjM2IiwidmlzaXRvcl9pZCI6IjgxNTY4MjEyNTI2MTIxMDg4NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaa4bcf129ada7ed17c0d008c05b893cb0f6d90569aaaaf1be99b91569f83e859
hovercard-subject-tagpull_request:3965813286
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/sourcebot-dev/sourcebot/1405/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/94e73a5352643b56ca9a72488f6c0d82f44aa91aca077bd648e87cc1d686b9de/sourcebot-dev/sourcebot/pull/1405
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/94e73a5352643b56ca9a72488f6c0d82f44aa91aca077bd648e87cc1d686b9de/sourcebot-dev/sourcebot/pull/1405
og:image:altFixes SOU-1484 Fixes #1404 Syncing repos from some self-hosted Gitea instances fails when cross-fetch can't read the API response body (ERR_STREAM_PREMATURE_CLOSE). repoGet() then returns { dat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrendan-kellam
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-cache
go-importgithub.com/sourcebot-dev/sourcebot git https://github.com/sourcebot-dev/sourcebot.git
octolytics-dimension-user_id135396723
octolytics-dimension-user_loginsourcebot-dev
octolytics-dimension-repository_id846729675
octolytics-dimension-repository_nwosourcebot-dev/sourcebot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id846729675
octolytics-dimension-repository_network_root_nwosourcebot-dev/sourcebot
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fc8347865a14e2ec811533d68f929cf4e0ec19
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sourcebot-dev/sourcebot/pull/1405#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsourcebot-dev%2Fsourcebot%2Fpull%2F1405
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsourcebot-dev%2Fsourcebot%2Fpull%2F1405
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=sourcebot-dev%2Fsourcebot
Reloadhttps://github.com/sourcebot-dev/sourcebot/pull/1405
Reloadhttps://github.com/sourcebot-dev/sourcebot/pull/1405
Reloadhttps://github.com/sourcebot-dev/sourcebot/pull/1405
Please reload this pagehttps://github.com/sourcebot-dev/sourcebot/pull/1405
sourcebot-dev https://github.com/sourcebot-dev
sourcebothttps://github.com/sourcebot-dev/sourcebot
Notifications https://github.com/login?return_to=%2Fsourcebot-dev%2Fsourcebot
Fork 316 https://github.com/login?return_to=%2Fsourcebot-dev%2Fsourcebot
Star 3.6k https://github.com/login?return_to=%2Fsourcebot-dev%2Fsourcebot
Code https://github.com/sourcebot-dev/sourcebot
Issues 93 https://github.com/sourcebot-dev/sourcebot/issues
Pull requests 38 https://github.com/sourcebot-dev/sourcebot/pulls
Discussions https://github.com/sourcebot-dev/sourcebot/discussions
Actions https://github.com/sourcebot-dev/sourcebot/actions
Security and quality 0 https://github.com/sourcebot-dev/sourcebot/security
Insights https://github.com/sourcebot-dev/sourcebot/pulse
Code https://github.com/sourcebot-dev/sourcebot
Issues https://github.com/sourcebot-dev/sourcebot/issues
Pull requests https://github.com/sourcebot-dev/sourcebot/pulls
Discussions https://github.com/sourcebot-dev/sourcebot/discussions
Actions https://github.com/sourcebot-dev/sourcebot/actions
Security and quality https://github.com/sourcebot-dev/sourcebot/security
Insights https://github.com/sourcebot-dev/sourcebot/pulse
brendan-kellamhttps://github.com/brendan-kellam
mainhttps://github.com/sourcebot-dev/sourcebot/tree/main
brendan/sou-1484-bug-gitea-sync-fails-with-err_stream_premature_close-75d2https://github.com/sourcebot-dev/sourcebot/tree/brendan/sou-1484-bug-gitea-sync-fails-with-err_stream_premature_close-75d2
Conversationhttps://github.com/sourcebot-dev/sourcebot/pull/1405
Commits3 (3)https://github.com/sourcebot-dev/sourcebot/pull/1405/commits
Checkshttps://github.com/sourcebot-dev/sourcebot/pull/1405/checks
Files changedhttps://github.com/sourcebot-dev/sourcebot/pull/1405/files
fix(backend): handle Gitea ERR_STREAM_PREMATURE_CLOSE during synchttps://github.com/sourcebot-dev/sourcebot/pull/1405#top
brendan-kellamhttps://github.com/brendan-kellam
mainhttps://github.com/sourcebot-dev/sourcebot/tree/main
brendan/sou-1484-bug-gitea-sync-fails-with-err_stream_premature_close-75d2https://github.com/sourcebot-dev/sourcebot/tree/brendan/sou-1484-bug-gitea-sync-fails-with-err_stream_premature_close-75d2
https://github.com/brendan-kellam
brendan-kellamhttps://github.com/brendan-kellam
Jun 30, 2026https://github.com/sourcebot-dev/sourcebot/pull/1405#issue-4779847043
Please reload this pagehttps://github.com/sourcebot-dev/sourcebot/pull/1405
#1404https://github.com/sourcebot-dev/sourcebot/issues/1404
Please reload this pagehttps://github.com/sourcebot-dev/sourcebot/pull/1405
https://github.com/brendan-kellam
https://github.com/marketplace/linear-code
fix(backend): handle Gitea ERR_STREAM_PREMATURE_CLOSE and null repo datahttps://github.com/sourcebot-dev/sourcebot/pull/1405/commits/de1f301d2ffe5f8a002a0d456e9f0c7015c8b2a5
de1f301https://github.com/sourcebot-dev/sourcebot/pull/1405/commits/de1f301d2ffe5f8a002a0d456e9f0c7015c8b2a5
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jun 30, 2026https://github.com/sourcebot-dev/sourcebot/pull/1405#issuecomment-4847229332
Please reload this pagehttps://github.com/sourcebot-dev/sourcebot/pull/1405
https://app.coderabbit.ai/change-stack/sourcebot-dev/sourcebot/pull/1405?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack
CodeRabbithttps://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=sourcebot-dev/sourcebot&utm_content=1405
Xhttps://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai
Mastodonhttps://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai
Reddithttps://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code
Please reload this pagehttps://github.com/sourcebot-dev/sourcebot/pull/1405
https://github.com/brendan-kellam
https://github.com/marketplace/linear-code
docs: add CHANGELOG entry forhttps://github.com/sourcebot-dev/sourcebot/pull/1405/commits/474b7be2a2ce28c20521e36d7bcce02467726926
#1405https://github.com/sourcebot-dev/sourcebot/pull/1405
474b7behttps://github.com/sourcebot-dev/sourcebot/pull/1405/commits/474b7be2a2ce28c20521e36d7bcce02467726926
https://github.com/brendan-kellam
brendan-kellamhttps://github.com/brendan-kellam
June 30, 2026 23:02https://github.com/sourcebot-dev/sourcebot/pull/1405#event-27402239576
https://github.com/brendan-kellam
Merge branch 'main' into brendan/sou-1484-bug-gitea-sync-fails-with-e…https://github.com/sourcebot-dev/sourcebot/pull/1405/commits/886b28afe764f783d24dbb9f002382eab19905e6
886b28ahttps://github.com/sourcebot-dev/sourcebot/pull/1405/commits/886b28afe764f783d24dbb9f002382eab19905e6
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jun 30, 2026 https://github.com/sourcebot-dev/sourcebot/pull/1405#pullrequestreview-4604673040
View reviewed changes https://github.com/sourcebot-dev/sourcebot/pull/1405/files/474b7be2a2ce28c20521e36d7bcce02467726926
coderabbitaihttps://github.com/apps/coderabbitai
https://github.com/sourcebot-dev/sourcebot/pull/1405#pullrequestreview-4604673040
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
216c7d8https://github.com/sourcebot-dev/sourcebot/commit/216c7d851f89646b7d3a7496b3651f135d808d38
474b7behttps://github.com/sourcebot-dev/sourcebot/commit/474b7be2a2ce28c20521e36d7bcce02467726926
Please reload this pagehttps://github.com/sourcebot-dev/sourcebot/pull/1405
packages/backend/src/gitea.tshttps://github.com/sourcebot-dev/sourcebot/pull/1405/files/474b7be2a2ce28c20521e36d7bcce02467726926#diff-8364f477d2e12d4d7d01c9588a731791ec73de38b5d2ed2d8cf3f095368333cb
coderabbitaihttps://github.com/apps/coderabbitai
Jun 30, 2026https://github.com/sourcebot-dev/sourcebot/pull/1405#discussion_r3502331070
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
fix: Remove the default connection close header. node-fetch/node-fetch#1736https://github.com/node-fetch/node-fetch/pull/1736
"socket hang up" / ECONNRESET on consecutive requests with Node.js 19 and Node.js 20 node-fetch/node-fetch#1735https://github.com/node-fetch/node-fetch/issues/1735
https://www.thenodebook.com/http/keepalive-agents-poolshttps://www.thenodebook.com/http/keepalive-agents-pools
https://connectreport.com/blog/tuning-http-keep-alive-in-node-js/https://connectreport.com/blog/tuning-http-keep-alive-in-node-js/
https://github.com/node-fetch/node-fetch/https://github.com/node-fetch/node-fetch/
https://github.com/node-fetch/node-fetch/blob/37ac459cfd0eafdf5bbb3d083aa82f0f2a3c9b75/README.mdhttps://github.com/node-fetch/node-fetch/blob/37ac459cfd0eafdf5bbb3d083aa82f0f2a3c9b75/README.md
fix: Remove the default connection close header (v2 branch) node-fetch/node-fetch#1765https://github.com/node-fetch/node-fetch/pull/1765
https://stackoverflow.com/questions/62500011/reuse-tcp-connection-with-node-fetch-in-node-jshttps://stackoverflow.com/questions/62500011/reuse-tcp-connection-with-node-fetch-in-node-js
https://github.com/lquixada/cross-fetch/https://github.com/lquixada/cross-fetch/
https://www.npmjs.com/package/cross-fetchhttps://www.npmjs.com/package/cross-fetch
https://npm-compare.com/cross-fetch,isomorphic-fetch,node-fetchhttps://npm-compare.com/cross-fetch,isomorphic-fetch,node-fetch
https://github.com/node-fetch/node-fetch/blob/main/README.mdhttps://github.com/node-fetch/node-fetch/blob/main/README.md
keep-alive connections and http / https agents node-fetch/node-fetch#110https://github.com/node-fetch/node-fetch/issues/110
fix: Remove the default connection close header (v2 branch) node-fetch/node-fetch#1765https://github.com/node-fetch/node-fetch/pull/1765
Please reload this pagehttps://github.com/sourcebot-dev/sourcebot/pull/1405
packages/backend/src/gitea.tshttps://github.com/sourcebot-dev/sourcebot/pull/1405/files/474b7be2a2ce28c20521e36d7bcce02467726926#diff-8364f477d2e12d4d7d01c9588a731791ec73de38b5d2ed2d8cf3f095368333cb
coderabbitaihttps://github.com/apps/coderabbitai
Jun 30, 2026https://github.com/sourcebot-dev/sourcebot/pull/1405#discussion_r3502331080
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/sourcebot-dev/sourcebot/pull/1405
https://github.co/hiddenchars
https://github.com/sourcebot-dev/sourcebot/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsourcebot-dev%2Fsourcebot%2Fpull%2F1405
https://github.com/apps/coderabbitai
coderabbitai[bot] https://github.com/apps/coderabbitai
https://github.com/sourcebot-dev/sourcebot/pull/1405/files/474b7be2a2ce28c20521e36d7bcce02467726926
[bug] Gitea sync fails with ERR_STREAM_PREMATURE_CLOSE, then crashes on null full_name https://github.com/sourcebot-dev/sourcebot/issues/1404
Please reload this pagehttps://github.com/sourcebot-dev/sourcebot/pull/1405
https://github.com/brendan-kellam
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.