Fixed send url, fixed attributeerror on errors.