Hi,

Have you taken care of attachment restrictions? Some file types are
blocked:
http://mail.google.com/support/bin/answer.py?answer=6590&topic=12850

Also, the maximum size of single email cannot exceed 20 MB with a
total restriction of 32 MB on the POST request as well.

Ideally, these should generate user friendly error responses but it
can get masked sometimes due to the exception handling code.
If you find all your attachments to be within limits, could you please
share the code snippet that is attempting the upload ?

-Anirudh


On Oct 31, 5:42 pm, bobb <[EMAIL PROTECTED]> wrote:
> Uploading mail messages in a feed containing file attachments often
> causes the entire batch request to be aborted, with no explicit
> reason, and no debug output (i.e., there is no log data for the feeds
> which are canceled). Increasing the http timeout does not seem to help
> for these exceptions.
>
> The exceptions seem to be related to uploaded attachments, other feed
> batch requests succeed.
>
> My program logs the following. Note that I am increasing the http
> timeout from 100 sec (the default) to 172 sec, with retries:
>
> ERROR: exception from server on message upload:
> System.Net.WebException: The request was aborted: The request was
> canceled.
>    at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[]
> buffer, Int32 offset, Int32 size, AsyncCallback callback, Object
> state)
>    at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset,
> Int32 size)
>    at Google.GData.Client.GDataGAuthRequest.CopyRequestData() in C:
> \Google\GoogleSDK1-2-1\Sources\Library\core\gauthrequest.cs:line 729
>    at Google.GData.Client.GDataGAuthRequest.Execute(Int32
> retryCounter) in C:\Google\GoogleSDK1-2-1\Sources\Library\core
> \gauthrequest.cs:line 692
>    at Google.GData.Client.GDataGAuthRequest.Execute() in C:\Google
> \GoogleSDK1-2-1\Sources\Library\core\gauthrequest.cs:line 624
>    at Google.GData.Client.GDataLoggingRequest.Execute() in C:\Google
> \GoogleSDK1-2-1\Sources\Library\core\logrequest.cs:line 171
>    at Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase
> baseEntry, GDataRequestType type) in C:\Google\GoogleSDK1-2-1\Sources
> \Library\core\service.cs:line 568
>    at Google.GData.Client.Service.Batch(AtomFeed feed, Uri batchUri)
> in C:\Google\GoogleSDK1-2-1\Sources\Library\core\service.cs:line 777
>    at Google.GData.Apps.Migration.MailItemService.Batch(String domain,
> String userName, MailItemEntry[] entries) in C:\Google
> \GoogleSDK1-2-1\Sources\Library\gapps\mailitemservice.cs:line 89
>    at migration.MigrationUtils.ProcessMailUpload(MailItemService
> mailItemService, String domain, String adminUsername, MailItemEntry[]
> entries) in C:\CMT-U\CMT-Google\Application\CMTgUpload
> \migration.cs:line 184
>
> Retrying current batch (id 102 through 111)
> Increasing HTTP timeout from 100 to 120 seconds
>
> ERROR: exception from server on message upload:
> System.Net.WebException: The request was aborted: The request was
> canceled.
>    at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[]
> buffer, Int32 offset, Int32 size, AsyncCallback callback, Object
> state)
>    at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset,
> Int32 size)
>    at Google.GData.Client.GDataGAuthRequest.CopyRequestData() in C:
> \Google\GoogleSDK1-2-1\Sources\Library\core\gauthrequest.cs:line 729
>    at Google.GData.Client.GDataGAuthRequest.Execute(Int32
> retryCounter) in C:\Google\GoogleSDK1-2-1\Sources\Library\core
> \gauthrequest.cs:line 692
>    at Google.GData.Client.GDataGAuthRequest.Execute() in C:\Google
> \GoogleSDK1-2-1\Sources\Library\core\gauthrequest.cs:line 624
>    at Google.GData.Client.GDataLoggingRequest.Execute() in C:\Google
> \GoogleSDK1-2-1\Sources\Library\core\logrequest.cs:line 171
>    at Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase
> baseEntry, GDataRequestType type) in C:\Google\GoogleSDK1-2-1\Sources
> \Library\core\service.cs:line 568
>    at Google.GData.Client.Service.Batch(AtomFeed feed, Uri batchUri)
> in C:\Google\GoogleSDK1-2-1\Sources\Library\core\service.cs:line 777
>    at Google.GData.Apps.Migration.MailItemService.Batch(String domain,
> String userName, MailItemEntry[] entries) in C:\Google
> \GoogleSDK1-2-1\Sources\Library\gapps\mailitemservice.cs:line 89
>    at migration.MigrationUtils.ProcessMailUpload(MailItemService
> mailItemService, String domain, String adminUsername, MailItemEntry[]
> entries) in C:\CMT-U\CMT-Google\Application\CMTgUpload
> \migration.cs:line 184
>
> Retrying current batch (id 102 through 111)
> Increasing HTTP timeout from 120 to 144 seconds
>
> ERROR: exception from server on message upload:
> System.Net.WebException: The request was aborted: The request was
> canceled.
>    at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[]
> buffer, Int32 offset, Int32 size, AsyncCallback callback, Object
> state)
>    at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset,
> Int32 size)
>    at Google.GData.Client.GDataGAuthRequest.CopyRequestData() in C:
> \Google\GoogleSDK1-2-1\Sources\Library\core\gauthrequest.cs:line 729
>    at Google.GData.Client.GDataGAuthRequest.Execute(Int32
> retryCounter) in C:\Google\GoogleSDK1-2-1\Sources\Library\core
> \gauthrequest.cs:line 692
>    at Google.GData.Client.GDataGAuthRequest.Execute() in C:\Google
> \GoogleSDK1-2-1\Sources\Library\core\gauthrequest.cs:line 624
>    at Google.GData.Client.GDataLoggingRequest.Execute() in C:\Google
> \GoogleSDK1-2-1\Sources\Library\core\logrequest.cs:line 171
>    at Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase
> baseEntry, GDataRequestType type) in C:\Google\GoogleSDK1-2-1\Sources
> \Library\core\service.cs:line 568
>    at Google.GData.Client.Service.Batch(AtomFeed feed, Uri batchUri)
> in C:\Google\GoogleSDK1-2-1\Sources\Library\core\service.cs:line 777
>    at Google.GData.Apps.Migration.MailItemService.Batch(String domain,
> String userName, MailItemEntry[] entries) in C:\Google
> \GoogleSDK1-2-1\Sources\Library\gapps\mailitemservice.cs:line 89
>    at migration.MigrationUtils.ProcessMailUpload(MailItemService
> mailItemService, String domain, String adminUsername, MailItemEntry[]
> entries) in C:\CMT-U\CMT-Google\Application\CMTgUpload
> \migration.cs:line 184
>
> Retrying current batch (id 102 through 111)
> Increasing HTTP timeout from 144 to 172 seconds
>
> ERROR: exception from server on message upload:
> System.Net.WebException: The request was aborted: The request was
> canceled.
>    at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[]
> buffer, Int32 offset, Int32 size, AsyncCallback callback, Object
> state)
>    at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset,
> Int32 size)
>    at Google.GData.Client.GDataGAuthRequest.CopyRequestData() in C:
> \Google\GoogleSDK1-2-1\Sources\Library\core\gauthrequest.cs:line 729
>    at Google.GData.Client.GDataGAuthRequest.Execute(Int32
> retryCounter) in C:\Google\GoogleSDK1-2-1\Sources\Library\core
> \gauthrequest.cs:line 692
>    at Google.GData.Client.GDataGAuthRequest.Execute() in C:\Google
> \GoogleSDK1-2-1\Sources\Library\core\gauthrequest.cs:line 624
>    at Google.GData.Client.GDataLoggingRequest.Execute() in C:\Google
> \GoogleSDK1-2-1\Sources\Library\core\logrequest.cs:line 171
>    at Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase
> baseEntry, GDataRequestType type) in C:\Google\GoogleSDK1-2-1\Sources
> \Library\core\service.cs:line 568
>    at Google.GData.Client.Service.Batch(AtomFeed feed, Uri batchUri)
> in C:\Google\GoogleSDK1-2-1\Sources\Library\core\service.cs:line 777
>    at Google.GData.Apps.Migration.MailItemService.Batch(String domain,
> String userName, MailItemEntry[] entries) in C:\Google
> \GoogleSDK1-2-1\Sources\Library\gapps\mailitemservice.cs:line 89
>    at migration.MigrationUtils.ProcessMailUpload(MailItemService
> mailItemService, String domain, String adminUsername, MailItemEntry[]
> entries) in C:\CMT-U\CMT-Google\Application\CMTgUpload
> \migration.cs:line 184
>         Msg IDs 102 through 111 were not uploaded. CMTSourceID list for these
> messages is:
> ID: 149F5724CC084949862574DF00561718
> ID: 352957DF620E6A4D862574E8007A3E60
> ID: 2030418412696F55862574E80078E01A
> ID: 3E0C0B0A0299E5A1862574E80078DFC3
> ID: 85D6411C6A801450862574E80078DF20
> ID: 382BFF443775ACBB862574E80078B03A
> ID: 86079BAF50AB8A68862574E80078AFC8
> ID: 7E7F372E5A3A2606862574E80078AEE8
> ID: 5BB02A4EDC8175E6862574E80078AE60
> ID: 784B61ECF28788B9862574E80078A7AE
>
> This problem is now blocking deployment of our application.
> TIA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to