gmail - Getting conditionNotMet error on migration of emails > 32kb in size -


i've had success migrating small test messages google email migration api v2. however, when migrating larger messages, error like:

{  "error": {   "errors": [    {     "domain": "global",     "reason": "conditionnotmet",     "message": "limit reached.",     "locationtype": "header",     "location": "if-match"    }   ],   "code": 412,   "message": "limit reached."  } } 

i start noticing error sporadically messages @ 32kb size. @ 40kb in size, error becomes consistent (no messages succeed). i've confirmed error occurs whether i'm using google-api-python-client my non-standard discovery document or oauth 2.0 playground. here's successful call , response message < 32kb looks like:

post /upload/email/v2/users/jay@ditoweb.com/mail?uploadtype=multipart http/1.1 host: www.googleapis.com content-length: 6114 content-type: multipart/related; boundary="part_boundary" authorization: bearer <removed> --part_boundary content-type: application/json; charset=utf-8  {  'isinbox': 'true',  'isunread': 'true' }  --part_boundary content-type: message/rfc822  from: <admin@jay.powerposters.org> to: <admin@jay.powerposters.org> subject: test growing message sizes date: wed, 17 jul 2013 10:40:48 -0400  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <last line repeated ~50 times> --part_boundary--   http/1.1 204 no content content-length: 0 via: http/1.1 gwa x-google-cache-control: remote-fetch server: http upload server built on jul 8 2013 15:32:26 (1373322746) etag: "s82oyh6kqmvit9ye14ogc8rmmsq/vygp6pvfo4rvsftpoiwecreyic8" date: wed, 17 jul 2013 17:35:13 gmt 

and here's failed message of ~150kb looks like:

post /upload/email/v2/users/admin@jay.powerposters.org/mail?uploadtype=multipart http/1.1 host: www.googleapis.com content-length: 189946 content-type: multipart/related; boundary="part_boundary" authorization: bearer <removed> --part_boundary content-type: application/json; charset=utf-8  {  'isinbox': 'true',  'isunread': 'true' }  --part_boundary content-type: message/rfc822  from: <admin@jay.powerposters.org> to: <admin@jay.powerposters.org> subject: test growing message sizes date: wed, 17 jul 2013 10:40:48 -0400  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <last line repeated ~1500 times>  --part_boundary--   http/1.1 412 precondition failed content-length: 240 via: http/1.1 gwa x-google-cache-control: remote-fetch server: http upload server built on jul 8 2013 15:32:26 (1373322746) date: wed, 17 jul 2013 16:57:23 gmt content-type: application/json {  "error": {   "errors": [    {     "domain": "global",     "reason": "conditionnotmet",     "message": "limit reached.",     "locationtype": "header",     "location": "if-match"    }   ],   "code": 412,   "message": "limit reached."  } } 

google has fixed issue on end. can migrate messages of sizes.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -