René's URL Explorer Experiment


Title: Fix crash when response has Content-Type: application/json but empty body by ELanning · Pull Request #79 · FacilityApi/FacilityJavaScript · GitHub

Open Graph Title: Fix crash when response has Content-Type: application/json but empty body by ELanning · Pull Request #79 · FacilityApi/FacilityJavaScript

X Title: Fix crash when response has Content-Type: application/json but empty body by ELanning · Pull Request #79 · FacilityApi/FacilityJavaScript

Description: When a server returns a response like '202 Accepted' with Content-Type: application/json and Content-Length: 0, the client would call response.json() on the empty body, causing a JSON parse error (SyntaxError). This crashed FSD clients that tried to deserialize the resulting undefined/null. Fix: check Content-Length header before attempting JSON deserialization. If Content-Length is '0', skip parsing and return an empty object, matching the existing behavior for missing Content-Type.

Open Graph Description: When a server returns a response like '202 Accepted' with Content-Type: application/json and Content-Length: 0, the client would call response.json() on the empty body, causing a JSON parse...

X Description: When a server returns a response like '202 Accepted' with Content-Type: application/json and Content-Length: 0, the client would call response.json() on the empty body, causing a JS...

Opengraph URL: https://github.com/FacilityApi/FacilityJavaScript/pull/79

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:571aab20-fc7b-5e4e-6ce7-d335e95c9288
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8502:30ACB3:1B71A7:24143D:6B00BD86
html-safe-nonce0688e1f6c48adc134cb7fc5d8f7a1352247f19e2f816d6edae3669f1b97baa55
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTAyOjMwQUNCMzoxQjcxQTc6MjQxNDNEOjZCMDBCRDg2IiwidmlzaXRvcl9pZCI6IjI5NDczMzMwNjQyNzcxNDcwMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbce681defb3c7723034c2804291bec8e7ef97ea1d099c3f3a7027be145eace5f
hovercard-subject-tagpull_request:3765769566
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/FacilityApi/FacilityJavaScript/pull/79/files
twitter:imagehttps://avatars.githubusercontent.com/u/38930062?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/38930062?s=400&v=4
og:image:altWhen a server returns a response like '202 Accepted' with Content-Type: application/json and Content-Length: 0, the client would call response.json() on the empty body, causing a JSON parse...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/FacilityApi/FacilityJavaScript git https://github.com/FacilityApi/FacilityJavaScript.git
octolytics-dimension-user_id22828021
octolytics-dimension-user_loginFacilityApi
octolytics-dimension-repository_id73533359
octolytics-dimension-repository_nwoFacilityApi/FacilityJavaScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id73533359
octolytics-dimension-repository_network_root_nwoFacilityApi/FacilityJavaScript
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
release1fee81a280ea86312b69448e261b418189bfd5b5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FFacilityApi%2FFacilityJavaScript%2Fpull%2F79%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%2FFacilityApi%2FFacilityJavaScript%2Fpull%2F79%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=FacilityApi%2FFacilityJavaScript
Reloadhttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files
Reloadhttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files
Reloadhttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files
FacilityApihttps://github.com/FacilityApi
FacilityJavaScripthttps://github.com/FacilityApi/FacilityJavaScript
Codehttps://github.com/FacilityApi/FacilityJavaScript
Issues6 (6)https://github.com/FacilityApi/FacilityJavaScript/issues
Pull requests6 (6)https://github.com/FacilityApi/FacilityJavaScript/pulls
Actionshttps://github.com/FacilityApi/FacilityJavaScript/actions
Security and qualityhttps://github.com/FacilityApi/FacilityJavaScript/security
Insightshttps://github.com/FacilityApi/FacilityJavaScript/insights
Sign up for GitHub https://github.com/signup?return_to=%2FFacilityApi%2FFacilityJavaScript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FFacilityApi%2FFacilityJavaScript%2Fissues%2Fnew%2Fchoose
ELanninghttps://github.com/ELanning
FacilityApi:masterhttps://github.com/FacilityApi/FacilityJavaScript/tree/master
ELanning:masterhttps://github.com/ELanning/FacilityJavaScript/tree/master
Conversation 2 https://github.com/FacilityApi/FacilityJavaScript/pull/79
Commits 1 https://github.com/FacilityApi/FacilityJavaScript/pull/79/commits
Checks 3 https://github.com/FacilityApi/FacilityJavaScript/pull/79/checks
Files changed https://github.com/FacilityApi/FacilityJavaScript/pull/79/files
Please reload this pagehttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files
Fix crash when response has Content-Type: application/json but empty body https://github.com/FacilityApi/FacilityJavaScript/pull/79/files#top
Show all changes 1 commit https://github.com/FacilityApi/FacilityJavaScript/pull/79/files
80400a0 Fix crash when response has Content-Type: application/json but empty … ELanning May 29, 2026 https://github.com/FacilityApi/FacilityJavaScript/pull/79/commits/80400a0bbfb76182060c820cd2c24a469af5d64d
Clear filters https://github.com/FacilityApi/FacilityJavaScript/pull/79/files
Please reload this pagehttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files
Please reload this pagehttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files
package-lock.json https://github.com/FacilityApi/FacilityJavaScript/pull/79/files#diff-eb670b820eccaaed3af616fb951a18a0c58578314a7ecf632352d3ac185b3539
facilityCore.ts https://github.com/FacilityApi/FacilityJavaScript/pull/79/files#diff-29c93b420fcf39698ed3306f01c19e46ae2a834132c1842b0c52014e2c112eab
fetchResponse.ts https://github.com/FacilityApi/FacilityJavaScript/pull/79/files#diff-013d827f8092f589925c1d7e2746d92ee34ed127a398885cd25210af3016d67c
ts/package-lock.jsonhttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files#diff-eb670b820eccaaed3af616fb951a18a0c58578314a7ecf632352d3ac185b3539
View file https://github.com/ELanning/FacilityJavaScript/blob/80400a0bbfb76182060c820cd2c24a469af5d64d/ts/package-lock.json
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files
ts/src/facilityCore.tshttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files#diff-29c93b420fcf39698ed3306f01c19e46ae2a834132c1842b0c52014e2c112eab
View file https://github.com/ELanning/FacilityJavaScript/blob/80400a0bbfb76182060c820cd2c24a469af5d64d/ts/src/facilityCore.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/FacilityApi/FacilityJavaScript/pull/79/{{ revealButtonHref }}
https://github.com/FacilityApi/FacilityJavaScript/pull/79/files#diff-29c93b420fcf39698ed3306f01c19e46ae2a834132c1842b0c52014e2c112eab
https://github.com/FacilityApi/FacilityJavaScript/pull/79/files#diff-29c93b420fcf39698ed3306f01c19e46ae2a834132c1842b0c52014e2c112eab
ts/test/fetchResponse.tshttps://github.com/FacilityApi/FacilityJavaScript/pull/79/files#diff-013d827f8092f589925c1d7e2746d92ee34ed127a398885cd25210af3016d67c
View file https://github.com/ELanning/FacilityJavaScript/blob/80400a0bbfb76182060c820cd2c24a469af5d64d/ts/test/fetchResponse.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/FacilityApi/FacilityJavaScript/pull/79/{{ revealButtonHref }}
Please reload this pagehttps://github.com/FacilityApi/FacilityJavaScript/pull/79/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.