When uploading photos using the Google Contacts API in Objective C, the server responds to 20% of my upload requests with error 500: A temporary internal problem has occurred. As a result, the uploaded photo doesn't appear in Gmail. Is this a bug? If not, what can I do so that my application's users don't experience this error?
Thank you for your help.
Here is an example server response:
2012-12-23 22:58:03 +0000
Request headers:
Accept: application/atom+xml, text/xml
Authorization: GoogleLogin auth=_snip_
Cache-Control: no-cache
Content-Length: 2484
Content-Type: image/jpeg
GData-Version: 3.0
Mime-Version: 1.0
User-Agent: GData-ObjectiveC/1.12 iPhone/6.0.1 (gzip)
Request body: (2484 bytes)
<<2484 bytes>>
Response: status 500
Response headers:
Cache-Control: private, max-age=0
Content-Encoding: gzip
Content-Type: text/plain; charset=UTF-8
Date: Sun, 23 Dec 2012 22:58:02 GMT
Expires: Sun, 23 Dec 2012 22:58:02 GMT
Server: GSE
Transfer-Encoding: Identity
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Response body: (59 bytes)
A temporary internal problem has occurred. Try again later.
-----------------------------------------------------------