The query function doesn’t handle non-200 return codes properly so this ended up still trying to decode the body which resulted in weird error messages.