Improve retry error messages.

Also fixed "undefined" being printed as the url.
Fix failing test.
Bump version.