I encountered a response I cannot print. It boiled down to the response having the empty string as content type.
httr2::response(headers = list(`Content-Type` = ""))
#> <httr2_response>
#> GET https://example.com
#> Status: 200 OK
#> Error in pieces[[1]]: subscript out of bounds
Created on 2022-08-03 by the reprex package (v2.0.1)