Google.Apis.Gmail.v1.UsersResource.MessagesResource.GetRequest.Execute()+任务被取消错误

时间:2018-06-22 06:43:49

标签: gmail-api

使用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();

0 个答案:

没有答案