fix a panic due to Transport property being nil
show raw json (or not) on failed http requests