René's URL Explorer Experiment


Title: fix: add codersdk JSON response decoder for typed API endpoints by dylanhuff-at-coder · Pull Request #27804 · coder/coder · GitHub

Open Graph Title: fix: add codersdk JSON response decoder for typed API endpoints by dylanhuff-at-coder · Pull Request #27804 · coder/coder

X Title: fix: add codersdk JSON response decoder for typed API endpoints by dylanhuff-at-coder · Pull Request #27804 · coder/coder

Description: Secure environments for developers and their agents - fix: add codersdk JSON response decoder for typed API endpoints by dylanhuff-at-coder · Pull Request #27804 · coder/coder

Open Graph Description: coder whoami and coder list can surface low-level JSON decode errors when a reverse proxy, SSO portal, or incorrect Coder URL returns HTML with a successful HTTP status. Add a shared SDK JSON respo...

X Description: coder whoami and coder list can surface low-level JSON decode errors when a reverse proxy, SSO portal, or incorrect Coder URL returns HTML with a successful HTTP status. Add a shared SDK JSON respo...

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

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:ac5c0a97-5c17-d2f8-64b6-35ef6f0cca60
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD5CE:1F44:1408FB0:1A3E2A3:6B014BA8
html-safe-nonce66549002e6d19f890444b0bf55a17588e511669868409f35f8b32ab9d69e8e68
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUNFOjFGNDQ6MTQwOEZCMDoxQTNFMkEzOjZCMDE0QkE4IiwidmlzaXRvcl9pZCI6IjYxMzE1Nzg4Mzc3OTM4NTIzMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6de5b36d4a8d45f7d0d2005fe07c0693952a496edc54bd1a8a48cdd6529c908b
hovercard-subject-tagpull_request:4196857231
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/27804/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4505a0fed4288e11d3374810ed528d01d74a6abfd29889172c678ce62a69cf7d/coder/coder/pull/27804
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4505a0fed4288e11d3374810ed528d01d74a6abfd29889172c678ce62a69cf7d/coder/coder/pull/27804
og:image:altcoder whoami and coder list can surface low-level JSON decode errors when a reverse proxy, SSO portal, or incorrect Coder URL returns HTML with a successful HTTP status. Add a shared SDK JSON respo...
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/27804#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F27804
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%2F27804
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/27804
Reloadhttps://github.com/coder/coder/pull/27804
Reloadhttps://github.com/coder/coder/pull/27804
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-sdk-json-response-decoderhttps://github.com/coder/coder/tree/dylan/plat-378-sdk-json-response-decoder
Conversationhttps://github.com/coder/coder/pull/27804
Commits3 (3)https://github.com/coder/coder/pull/27804/commits
Checkshttps://github.com/coder/coder/pull/27804/checks
Files changedhttps://github.com/coder/coder/pull/27804/files
fix: add codersdk JSON response decoder for typed API endpointshttps://github.com/coder/coder/pull/27804#top
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
mainhttps://github.com/coder/coder/tree/main
dylan/plat-378-sdk-json-response-decoderhttps://github.com/coder/coder/tree/dylan/plat-378-sdk-json-response-decoder
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 3, 2026https://github.com/coder/coder/pull/27804#issue-5052798558
Please reload this pagehttps://github.com/coder/coder/pull/27804
#27044https://github.com/coder/coder/issues/27044
@dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/dylanhuff-at-coder
fix(codersdk): add JSON response decoder for typed API endpointshttps://github.com/coder/coder/pull/27804/commits/86fa818bd4c83e09ce163d9934dd577b31fa0dbd
86fa818https://github.com/coder/coder/pull/27804/commits/86fa818bd4c83e09ce163d9934dd577b31fa0dbd
#27044https://github.com/coder/coder/issues/27044
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Aug 3, 2026https://github.com/coder/coder/pull/27804#issuecomment-5169994632
PLAT-378https://linear.app/codercom/issue/PLAT-378
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 3, 2026https://github.com/coder/coder/pull/27804#event-28905125513
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 3, 2026https://github.com/coder/coder/pull/27804#event-28905188651
https://github.com/dylanhuff-at-coder
fix(codersdk): harden JSON response decodinghttps://github.com/coder/coder/pull/27804/commits/033cce145e42be48a0aed4f27161d0af4457cdc7
033cce1https://github.com/coder/coder/pull/27804/commits/033cce145e42be48a0aed4f27161d0af4457cdc7
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 4, 2026 15:57https://github.com/coder/coder/pull/27804#event-28960340936
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/27804#issuecomment-5182397577
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
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
(View in Graphite)https://app.graphite.com/github/pr/coder/coder/27804?utm_source=stack-comment-view-in-graphite
Graphitehttps://graphite.dev?utm-source=stack-comment
stackinghttps://stacking.dev/?utm_source=stack-comment
Please reload this pagehttps://github.com/coder/coder/pull/27804
refactor(codersdk): use ReadBodyAsJSON in typed endpoints #27857 https://github.com/coder/coder/pull/27857
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/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
BobbyHohttps://github.com/BobbyHo
August 4, 2026 18:50https://github.com/coder/coder/pull/27804#event-28968534376
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
Aug 4, 2026https://github.com/coder/coder/pull/27804#issuecomment-5183809320
Please reload this pagehttps://github.com/coder/coder/pull/27804
coder/codersdk/client.gohttps://github.com/coder/coder/blob/033cce145e42be48a0aed4f27161d0af4457cdc7/codersdk/client.go#L528-L536
033cce1https://github.com/coder/coder/commit/033cce145e42be48a0aed4f27161d0af4457cdc7
coder/codersdk/client.gohttps://github.com/coder/coder/blob/033cce145e42be48a0aed4f27161d0af4457cdc7/codersdk/client.go#L551-L558
033cce1https://github.com/coder/coder/commit/033cce145e42be48a0aed4f27161d0af4457cdc7
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
Aug 4, 2026 https://github.com/coder/coder/pull/27804#pullrequestreview-4858373945
View reviewed changes https://github.com/coder/coder/pull/27804/files/033cce145e42be48a0aed4f27161d0af4457cdc7
codersdk/client.gohttps://github.com/coder/coder/pull/27804/files/033cce145e42be48a0aed4f27161d0af4457cdc7#diff-64a48277adf9f0d069a419bbb8ecbe9ba8e38cc43b95fa21d16a750cf194cd88
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
Aug 4, 2026 https://github.com/coder/coder/pull/27804#pullrequestreview-4858376685
View reviewed changes https://github.com/coder/coder/pull/27804/files/033cce145e42be48a0aed4f27161d0af4457cdc7
BobbyHohttps://github.com/BobbyHo
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/coder/coder/pull/27804#pullrequestreview-4858376685
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/dylanhuff-at-coder
refactor(codersdk): deduplicate HTML body error construction in ReadB…https://github.com/coder/coder/pull/27804/commits/6d2f137f3eb70cb778e1b444f5746a34670c7178
6d2f137https://github.com/coder/coder/pull/27804/commits/6d2f137f3eb70cb778e1b444f5746a34670c7178
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27804#issuecomment-5185643755
coder/codersdk/client.gohttps://github.com/coder/coder/blob/033cce145e42be48a0aed4f27161d0af4457cdc7/codersdk/client.go#L528-L536
033cce1https://github.com/coder/coder/commit/033cce145e42be48a0aed4f27161d0af4457cdc7
coder/codersdk/client.gohttps://github.com/coder/coder/blob/033cce145e42be48a0aed4f27161d0af4457cdc7/codersdk/client.go#L551-L558
033cce1https://github.com/coder/coder/commit/033cce145e42be48a0aed4f27161d0af4457cdc7
6d2f137https://github.com/coder/coder/commit/6d2f137f3eb70cb778e1b444f5746a34670c7178
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
Aug 4, 2026 https://github.com/coder/coder/pull/27804#pullrequestreview-4859720378
View reviewed changes https://github.com/coder/coder/pull/27804/files/6d2f137f3eb70cb778e1b444f5746a34670c7178
BobbyHohttps://github.com/BobbyHo
https://github.com/coder/coder/pull/27804#pullrequestreview-4859720378
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
db68c6chttps://github.com/coder/coder/commit/db68c6c9fe275057943926fc5e8951a6820961c7
Aug 5, 2026https://github.com/coder/coder/pull/27804#event-29024824916
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 17:42https://github.com/coder/coder/pull/27804#event-29024827287
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 5, 2026https://github.com/coder/coder/pull/27804#event-29024832810
https://github.co/hiddenchars
https://github.com/coder/coder/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F27804
https://github.com/BobbyHo
BobbyHo https://github.com/BobbyHo
https://github.com/coder/coder/pull/27804/files/6d2f137f3eb70cb778e1b444f5746a34670c7178
Please reload this pagehttps://github.com/coder/coder/pull/27804
https://github.com/dylanhuff-at-coder
dylanhuff-at-coder https://github.com/dylanhuff-at-coder
Please reload this pagehttps://github.com/coder/coder/pull/27804
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.