Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve debug information http step #3496

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

hiddeco
Copy link
Contributor

@hiddeco hiddeco commented Feb 13, 2025

This adds the HTTP response code to the error message in case of failures, and provides a trace level log message with the HTTP response. Combined, this should make it easier to debug a variety of error scenarios a user may run into when trying to write a http directive.

Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit 7ef9a13
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-io/deploys/67ad772d7a15110008927b1a
😎 Deploy Preview https://deploy-preview-3496.docs.kargo.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

This adds the HTTP response code to the error message in case of
failures, and provides a `trace` level log message with the HTTP
response. Combined, this should make it easier to debug a variety
of error scenarios a user may run into when trying to write a `http`
directive.

Signed-off-by: Hidde Beydals <[email protected]>
Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.27%. Comparing base (d497623) to head (7ef9a13).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3496      +/-   ##
==========================================
+ Coverage   52.25%   52.27%   +0.01%     
==========================================
  Files         290      290              
  Lines       26307    26317      +10     
==========================================
+ Hits        13747    13757      +10     
  Misses      11810    11810              
  Partials      750      750              

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

@hiddeco hiddeco added this pull request to the merge queue Feb 15, 2025
Merged via the queue into akuity:main with commit bee9f4a Feb 15, 2025
19 checks passed
@hiddeco hiddeco deleted the imprv-http-step branch February 15, 2025 07:43
github-actions bot pushed a commit that referenced this pull request Feb 15, 2025
Signed-off-by: Hidde Beydals <[email protected]>
(cherry picked from commit bee9f4a)
@akuitybot
Copy link

Successfully created backport PR for release-1.2:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants