Skip to content

[2.x] fix: throw exception API requests return HTTP status != 200#97

Merged
stklcode merged 1 commit into
2.xfrom
fix/httpstatus-2
May 14, 2026
Merged

[2.x] fix: throw exception API requests return HTTP status != 200#97
stklcode merged 1 commit into
2.xfrom
fix/httpstatus-2

Conversation

@stklcode
Copy link
Copy Markdown
Owner

This is an old regression from Java 11 HttpClient migration that was never properly tested. Empty responses with HTTP error status silently fail with an empty list of stops/trips.
Validate response status and throw an exception if it's not 200.

Fixes: 88c10d5

(cherry picked from commit f37b73c)

This is an old regression from Java 11 HttpClient migration that was
never properly tested. Empty responses with HTTP error status silently
fail with an empty list of stops/trips.
Validate response status and throw an exception if it's not 200.

Fixes: 88c10d5

(cherry picked from commit f37b73c)
@stklcode stklcode self-assigned this May 14, 2026
@stklcode stklcode changed the title fix: throw exception API requests return HTTP status != 200 [2.x] fix: throw exception API requests return HTTP status != 200 May 14, 2026
@stklcode stklcode added this to the 2.0.12 milestone May 14, 2026
@sonarqubecloud
Copy link
Copy Markdown

@stklcode stklcode merged commit b7f9d8c into 2.x May 14, 2026
9 checks passed
@stklcode stklcode deleted the fix/httpstatus-2 branch May 14, 2026 09:02
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.

1 participant