René's URL Explorer Experiment


Title: refactor(codersdk): use ReadBodyAsJSON in typed endpoints by dylanhuff-at-coder · Pull Request #27857 · coder/coder · GitHub

Open Graph Title: refactor(codersdk): use ReadBodyAsJSON in typed endpoints by dylanhuff-at-coder · Pull Request #27857 · coder/coder

X Title: refactor(codersdk): use ReadBodyAsJSON in typed endpoints by dylanhuff-at-coder · Pull Request #27857 · coder/coder

Description: Secure environments for developers and their agents - refactor(codersdk): use ReadBodyAsJSON in typed endpoints by dylanhuff-at-coder · Pull Request #27857 · coder/coder

Open Graph Description: This PR migrates 224 typed JSON response sites across 46 files to codersdk.ReadBodyAsJSON, so invalid 2xx bodies return structured errors while preserving URL credential redaction. It intentionally...

X Description: This PR migrates 224 typed JSON response sites across 46 files to codersdk.ReadBodyAsJSON, so invalid 2xx bodies return structured errors while preserving URL credential redaction. It intentionally...

Opengraph URL: https://github.com/coder/coder/pull/27857

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/_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:6e3837b6-47b6-6afe-5b20-8e6ea6f41b0e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC642:237673:185EACD:208C3A4:6B014BD2
html-safe-nonce0673035c3e325c19cba467777ca74c4f2862816c5a552543b1cefd42accf234a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjQyOjIzNzY3MzoxODVFQUNEOjIwOEMzQTQ6NkIwMTRCRDIiLCJ2aXNpdG9yX2lkIjoiNTQyNTYxNTQxOTgzMjYxNzkzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4776000acd9d2b30002df956ec05b233b3bacb3fb7d70afd6a479d09f99eb05c
hovercard-subject-tagpull_request:4205642886
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/coder/coder/27857/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2b5974248e8c65936b6cfd15aa15ca2a0c474d5c09015ba6e77a5418000cfb6a/coder/coder/pull/27857
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2b5974248e8c65936b6cfd15aa15ca2a0c474d5c09015ba6e77a5418000cfb6a/coder/coder/pull/27857
og:image:altThis PR migrates 224 typed JSON response sites across 46 files to codersdk.ReadBodyAsJSON, so invalid 2xx bodies return structured errors while preserving URL credential redaction. It intentionally...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedylanhuff-at-coder
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/coder/coder/pull/27857#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F27857
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%2Fcoder%2Fcoder%2Fpull%2F27857
Sign uphttps://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=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/27857
Reloadhttps://github.com/coder/coder/pull/27857
Reloadhttps://github.com/coder/coder/pull/27857
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests469 (469)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
mainhttps://github.com/coder/coder/tree/main
dylan/plat-378-codersdk-read-body-as-jsonhttps://github.com/coder/coder/tree/dylan/plat-378-codersdk-read-body-as-json
Conversationhttps://github.com/coder/coder/pull/27857
Commits1 (1)https://github.com/coder/coder/pull/27857/commits
Checkshttps://github.com/coder/coder/pull/27857/checks
Files changedhttps://github.com/coder/coder/pull/27857/files
refactor(codersdk): use ReadBodyAsJSON in typed endpointshttps://github.com/coder/coder/pull/27857#top
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
mainhttps://github.com/coder/coder/tree/main
dylan/plat-378-codersdk-read-body-as-jsonhttps://github.com/coder/coder/tree/dylan/plat-378-codersdk-read-body-as-json
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27857#issue-5063143390
Please reload this pagehttps://github.com/coder/coder/pull/27857
#27804https://github.com/coder/coder/pull/27804
#27858https://github.com/coder/coder/pull/27858
#27859https://github.com/coder/coder/pull/27859
#27044https://github.com/coder/coder/issues/27044
@dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Please reload this pagehttps://github.com/coder/coder/pull/27857
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Aug 4, 2026https://github.com/coder/coder/pull/27857#issuecomment-5182396077
PLAT-378https://linear.app/codercom/issue/PLAT-378
Please reload this pagehttps://github.com/coder/coder/pull/27857
https://github.com/dylanhuff-at-coder
https://github.com/apps/graphite-app
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27857#issuecomment-5182397744
Please reload this pagehttps://github.com/coder/coder/pull/27857
chore: forbid direct response body JSON decode in codersdk #27859https://github.com/coder/coder/pull/27859
https://app.graphite.com/github/pr/coder/coder/27859?utm_source=stack-comment-icon
refactor(codersdk): use shared error helpers in chat endpoints #27858https://github.com/coder/coder/pull/27858
https://app.graphite.com/github/pr/coder/coder/27858?utm_source=stack-comment-icon
refactor(codersdk): use ReadBodyAsJSON in typed endpoints #27857https://github.com/coder/coder/pull/27857
https://app.graphite.com/github/pr/coder/coder/27857?utm_source=stack-comment-icon
(View in Graphite)https://app.graphite.com/github/pr/coder/coder/27857?utm_source=stack-comment-view-in-graphite
fix: add codersdk JSON response decoder for typed API endpoints #27804https://github.com/coder/coder/pull/27804
https://app.graphite.com/github/pr/coder/coder/27804?utm_source=stack-comment-icon
Graphitehttps://graphite.dev?utm-source=stack-comment
stackinghttps://stacking.dev/?utm_source=stack-comment
Please reload this pagehttps://github.com/coder/coder/pull/27857
fix: add codersdk JSON response decoder for typed API endpoints #27804 https://github.com/coder/coder/pull/27804
refactor(codersdk): use shared error helpers in chat endpoints #27858 https://github.com/coder/coder/pull/27858
chore: forbid direct response body JSON decode in codersdk #27859 https://github.com/coder/coder/pull/27859
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27857#event-28964485171
August 5, 2026 17:42https://github.com/coder/coder/pull/27857#event-29024826843
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 17:44https://github.com/coder/coder/pull/27857#event-29024915715
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
ibetitsmikehttps://github.com/ibetitsmike
johnstcnhttps://github.com/johnstcn
code ownershttps://github.com/coder/coder/blob/db68c6c9fe275057943926fc5e8951a6820961c7/CODEOWNERS#L41
August 5, 2026 17:44https://github.com/coder/coder/pull/27857#event-29024916289
https://github.com/dylanhuff-at-coder
refactor(codersdk): use ReadBodyAsJSON in typed endpointshttps://github.com/coder/coder/pull/27857/commits/0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
0f4d0e0https://github.com/coder/coder/pull/27857/commits/0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
force-pushedhttps://github.com/coder/coder/compare/a08a60d0bafd52a2bdc236a5089d55a47359c2c5..0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
a08a60dhttps://github.com/coder/coder/commit/a08a60d0bafd52a2bdc236a5089d55a47359c2c5
0f4d0e0https://github.com/coder/coder/commit/0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
Compare https://github.com/coder/coder/compare/a08a60d0bafd52a2bdc236a5089d55a47359c2c5..0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
August 5, 2026 17:52https://github.com/coder/coder/pull/27857#event-29025294699
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 18:28https://github.com/coder/coder/pull/27857#event-29026951524
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 19:15https://github.com/coder/coder/pull/27857#event-29029171950
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
BobbyHohttps://github.com/BobbyHo
August 5, 2026 19:17https://github.com/coder/coder/pull/27857#event-29029273436
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
Aug 5, 2026 https://github.com/coder/coder/pull/27857#pullrequestreview-4867971208
View reviewed changes https://github.com/coder/coder/pull/27857/files/0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
BobbyHohttps://github.com/BobbyHo
https://github.com/coder/coder/pull/27857#pullrequestreview-4867971208
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/27857
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
76ae643https://github.com/coder/coder/commit/76ae64391a78adf9077e04fcd1b79206ffb5dd00
Aug 5, 2026https://github.com/coder/coder/pull/27857#event-29032153236
Please reload this pagehttps://github.com/coder/coder/pull/27857
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 20:22https://github.com/coder/coder/pull/27857#event-29032154755
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 5, 2026 https://github.com/coder/coder/pull/27857#ref-commit-ed10064
https://github.com/dylanhuff-at-coder
refactor(codersdk): use shared error helpers in chat endpoints (https://github.com/coder/coder/commit/ed10064748101088290170faa3bf8115e4c38c84
#27858https://github.com/coder/coder/pull/27858
)https://github.com/coder/coder/commit/ed10064748101088290170faa3bf8115e4c38c84
ed10064https://github.com/coder/coder/commit/ed10064748101088290170faa3bf8115e4c38c84
#27857https://github.com/coder/coder/pull/27857
#27859https://github.com/coder/coder/pull/27859
#27044https://github.com/coder/coder/issues/27044
@dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 6, 2026 https://github.com/coder/coder/pull/27857#ref-commit-9b27d12
https://github.com/dylanhuff-at-coder
chore: forbid direct response body JSON decode in codersdk (https://github.com/coder/coder/commit/9b27d129297449390ae0ebebaf99770c52f8a72f
#27859https://github.com/coder/coder/pull/27859
)https://github.com/coder/coder/commit/9b27d129297449390ae0ebebaf99770c52f8a72f
9b27d12https://github.com/coder/coder/commit/9b27d129297449390ae0ebebaf99770c52f8a72f
#27804https://github.com/coder/coder/pull/27804
#27857https://github.com/coder/coder/pull/27857
#27858https://github.com/coder/coder/pull/27858
#27044https://github.com/coder/coder/issues/27044
#27857https://github.com/coder/coder/pull/27857
#27858https://github.com/coder/coder/pull/27858
#27859https://github.com/coder/coder/pull/27859
@dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
https://github.co/hiddenchars
https://github.com/coder/coder/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%2Fcoder%2Fcoder%2Fpull%2F27857
https://github.com/BobbyHo
BobbyHo https://github.com/BobbyHo
https://github.com/coder/coder/pull/27857/files/0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
https://github.com/ibetitsmike
ibetitsmike https://github.com/ibetitsmike
https://github.com/johnstcn
johnstcn https://github.com/johnstcn
Please reload this pagehttps://github.com/coder/coder/pull/27857
https://github.com/dylanhuff-at-coder
dylanhuff-at-coder https://github.com/dylanhuff-at-coder
Please reload this pagehttps://github.com/coder/coder/pull/27857
https://github.com/dylanhuff-at-coder
https://github.com/BobbyHo
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.