Fix error reporting for wrong urls