ropensci / vcr

Record HTTP calls and replay them
https://docs.ropensci.org/vcr
Other
77 stars 12 forks source link

is there an alternative to preserve_exact_body_bytes for Windows? #203

Closed maelle closed 3 years ago

maelle commented 3 years ago

Asking because the cassettes are much less nice to look at in that case.

Editing them by hand would not be fun.

maelle commented 3 years ago

I think that yes and it is using JSON as serializer?! so nice.

See https://github.com/maelle/vcrencoding/actions/runs/386840954

And then if I switch back to YAML I get the control character error (which is when YAML finds a ":" where it does not expect it) https://github.com/maelle/vcrencoding/runs/1463078832?check_suite_focus=true#step:9:204

sckott commented 3 years ago

Hmm, JSON serializer isn't exactly an alternative to preserve bytes option. You can still use preserve bytes when using JSON serializer.

I think there's no error for windows when you use json serializer b/c you're avoiding using the yaml pkg, which i think causes that error.

maelle commented 3 years ago

Oh yeah that is what I mean. I wanted no encoding error but human readable cassettes ☺