Skip to content

fix(sdk): add Content-Type header and improve error messages in generated HTTP client#5560

Merged
kodiakhq[bot] merged 3 commits into
v2from
rd/v2/sdk-issue
Mar 14, 2026
Merged

fix(sdk): add Content-Type header and improve error messages in generated HTTP client#5560
kodiakhq[bot] merged 3 commits into
v2from
rd/v2/sdk-issue

Conversation

@erka

@erka erka commented Mar 13, 2026

Copy link
Copy Markdown
Contributor
  • Fix race condition in KubernetesAuthenticationProvider.Authentication()
    using local resp instead of k.resp after read lock
  • Add Content-Type: application/json to all SDK HTTP requests
  • Improve error messages to include HTTP status and response body

…ated HTTP client

- Fix race condition in KubernetesAuthenticationProvider.Authentication()
  using local resp instead of k.resp after read lock
- Add Content-Type: application/json to all SDK HTTP requests
- Improve error messages to include HTTP status and response body

Signed-off-by: Roman Dmytrenko <[email protected]>
@erka
erka requested a review from a team as a code owner March 13, 2026 21:25
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 13, 2026
@github-actions

github-actions Bot commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Proto / proto-lint (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed❌ failed (0)Mar 14, 2026, 4:13 PM

@erka
erka marked this pull request as draft March 13, 2026 21:29
@codecov

codecov Bot commented Mar 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.40%. Comparing base (bcccf15) to head (c837bf3).
⚠️ Report is 1 commits behind head on v2.

Additional details and impacted files
@@           Coverage Diff           @@
##               v2    #5560   +/-   ##
=======================================
  Coverage   60.40%   60.40%           
=======================================
  Files         141      141           
  Lines       13995    13995           
=======================================
  Hits         8453     8453           
  Misses       4821     4821           
  Partials      721      721           
Flag Coverage Δ
integrationtests 34.32% <ø> (ø)
unittests 51.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Roman Dmytrenko <[email protected]>
@erka
erka force-pushed the rd/v2/sdk-issue branch 3 times, most recently from 7c796be to a8e2d96 Compare March 14, 2026 10:56
Signed-off-by: Roman Dmytrenko <[email protected]>
@erka
erka force-pushed the rd/v2/sdk-issue branch from a8e2d96 to c837bf3 Compare March 14, 2026 11:43
@erka erka added the v2 Flipt v2 label Mar 14, 2026
@erka
erka marked this pull request as ready for review March 14, 2026 11:48
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Mar 14, 2026

@markphelps markphelps left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@erka erka added the automerge Used by Kodiak bot to automerge PRs label Mar 14, 2026
@kodiakhq
kodiakhq Bot merged commit 4403ac4 into v2 Mar 14, 2026
40 of 45 checks passed
@kodiakhq
kodiakhq Bot deleted the rd/v2/sdk-issue branch March 14, 2026 16:13
@github-project-automation github-project-automation Bot moved this to Done in Flipt V2 Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Used by Kodiak bot to automerge PRs size:XL This PR changes 500-999 lines, ignoring generated files. v2 Flipt v2

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants