使用Gmail API下载电子邮件时,我收到以下错误消息:
错误:“任务已取消”
由以下代码产生:
UsersResource.MessagesResource.GetRequest getReq = gmailServiceObj.Users.Messages.Get(userEmail, MessageID);
getReq.Format = UsersResource.MessagesResource.GetRequest.FormatEnum.Raw;
//Exception at this statement
Google.Apis.Gmail.v1.Data.Message msg = getReq.Execute();