Skip to content

fix: stop masking non-request errors and accept JSON arrays as data#97

Merged
MikeWooster merged 1 commit into
masterfrom
fix/json-data-typing-and-error-handling
Jun 7, 2026
Merged

fix: stop masking non-request errors and accept JSON arrays as data#97
MikeWooster merged 1 commit into
masterfrom
fix/json-data-typing-and-error-handling

Conversation

@MikeWooster

Copy link
Copy Markdown
Owner
  • narrow request strategy error handling to requests.RequestException so unrelated errors propagate instead of being reported as UnexpectedError (Don't swallow errors #80)
  • widen the data argument on post/put/patch to the existing JsonType alias, so arrays are accepted by type checkers (post() does not support arrays #90)
  • repair two cassette responses using the legacy 'body: null' serialization that current vcrpy cannot replay; the get_user retry test now exercises a real 500 response instead of a masked vcr error

- narrow request strategy error handling to requests.RequestException so
  unrelated errors propagate instead of being reported as UnexpectedError (#80)
- widen the data argument on post/put/patch to the existing JsonType alias,
  so arrays are accepted by type checkers (#90)
- repair two cassette responses using the legacy 'body: null' serialization
  that current vcrpy cannot replay; the get_user retry test now exercises a
  real 500 response instead of a masked vcr error
@MikeWooster MikeWooster merged commit 5604b2c into master Jun 7, 2026
8 checks passed
@MikeWooster MikeWooster deleted the fix/json-data-typing-and-error-handling branch June 7, 2026 16:14
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.

1 participant