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

Add new UnexpectedResponseException #340

Merged
merged 24 commits into from
Jan 3, 2024

Conversation

Art4
Copy link
Collaborator

@Art4 Art4 commented Dec 22, 2023

It is possible that the Redmine server responses with an unexpected body, e.g. because a parameter was set incorrectly (see #335). In this case the parsing of the body will fail, causing a SerializerException. This results in a bad DX as the developer has no clue why the parsing of the body fails.

This PR introduces a new UnexpectedResponseException if the Redmine server delivers an unexpected response. This is a follow-up for #337.

@Art4 Art4 added this to the v2.4.0 milestone Dec 22, 2023
@Art4 Art4 self-assigned this Dec 22, 2023
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d810856) 96.37% compared to head (ec0296e) 96.58%.

Additional details and impacted files
@@             Coverage Diff              @@
##               v2.x     #340      +/-   ##
============================================
+ Coverage     96.37%   96.58%   +0.20%     
- Complexity      434      492      +58     
============================================
  Files            27       27              
  Lines          1298     1376      +78     
============================================
+ Hits           1251     1329      +78     
  Misses           47       47              

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

@Art4 Art4 marked this pull request as ready for review December 30, 2023 20:37
@Art4 Art4 requested a review from kbsali December 30, 2023 20:40
@Art4 Art4 merged commit c132efc into kbsali:v2.x Jan 3, 2024
7 checks passed
@Art4 Art4 deleted the 339-add-new-exception-on-unexpected-response branch January 3, 2024 14:14
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.

Add new exception on unexpected response Syntax error when authentication fails
1 participant