Skip to content

fix(health): handle unavailable HRV data - #27

Merged
vicentereig merged 1 commit into
vicentereig:mainfrom
TheConstructorBot:fix/sync-non-json-responses
Sep 5, 2026
Merged

vicentereig merged 1 commit into
vicentereig:mainfrom
TheConstructorBot:fix/sync-non-json-responses

Conversation

@TheConstructorBot

Copy link
Copy Markdown
Contributor

Summary

Treat Garmin’s 204 No Content response from the HRV endpoint as a valid no-data result rather than a JSON parsing failure.

Validation

  • cargo test -p garmin-cli (182 tests)
  • Confirmed against a live Garmin 204 No Content response: health hrv now prints No HRV data available.

Worked on by

  • TheConstructorBot

@vicentereig
vicentereig merged commit 44e1632 into vicentereig:main Sep 5, 2026
1 check passed
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.

2 participants