Skip to content

feat: Exceptions now supply ways to get the raw request and response#614

Merged
dragonmantank merged 2 commits intomainfrom
get-request-response
Mar 5, 2026
Merged

feat: Exceptions now supply ways to get the raw request and response#614
dragonmantank merged 2 commits intomainfrom
get-request-response

Conversation

@dragonmantank
Copy link
Member

To help with debugging, exceptions based on VonageApiResponseException now offer two methods to help with debugging:

  • getRawRequest() - Get the request that was generated and sent to the Vonage API
  • getRawResponse() - Get the full response that was returned by the Vonage API

This makes it easier to help debug when the server throws an error, especially with structural errors with JSON.

Contribution Checklist

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.94%. Comparing base (263fb2b) to head (ae7f7e6).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #614   +/-   ##
=========================================
  Coverage     98.93%   98.94%           
- Complexity     3623     3628    +5     
=========================================
  Files           545      545           
  Lines          8008     8019   +11     
  Branches        443      444    +1     
=========================================
+ Hits           7923     7934   +11     
  Misses           64       64           
  Partials         21       21           

☔ 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.

@dragonmantank dragonmantank merged commit cff1df0 into main Mar 5, 2026
16 checks passed
@dragonmantank dragonmantank deleted the get-request-response branch March 5, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants