Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I'm trying to find if there's a way to see which HTTP requests are being done on a server. The reason is I'm trying to troubleshoot a problem with contact synchronization.

I've been having a problem synchronizing my GMail contacts on my Android phone (Galaxy SIII). The date for the last sync is well over a month ago and the two arrows that rotate to indicate activity are static and permanently present in the Sync settings screen.

However, contact data does seem to be synchronized between my phone and the GMail server: new contacts created in one appear in the other, and modifications on one side are then synchronized back to the other.

If I press Cancel sync I used to get a toast saying that there are temporary problems and to try later (I think the message was "sync is currently experiencing problems. It will be back shortly"). But now nothing happens when I press Cancel sync.

Deleting all the Google contact data in the phone and then re-syncing is not an option for two reasons:

  1. If the problem is with a contact in the server then it won't fix the issue
  2. I don't want to risk losing data that I added on the phone and wasn't sent to the server yet.

I turned on developer mode to get ADB logs; the following line seemed the most relevant (repeated 8 times):

D/ContactsSyncAdapter( 2964): IOException: java.io.IOException: received unhandled http error: 500

then followed by

D/SyncManager( 2257): failed sync operation , SyncResult: stats [ numIoExceptions: 8]

I think that there are 8 contacts that somehow are not able to be synchronized, but I can't really find out which ones. Finding the HTTP requests that end with a 500 error could potentially reveal which contacts might be causing trouble or more troubleshooting clues.

I'd like to avoid rooting my phone, but I do have a full Android SDK and source environment set up. I've tried using DDMS but haven't been able to make it show if/which requests are being sent to the server.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["                  <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2015 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2015.4.21.2498\r\n            </div>\r\n                <div id=\"additional-notices\">\r\n                    The Android robot logo is a trademark of Google Inc. Android is a trademark of Google Inc.\r\n                </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n  "], "copyright__copyright__copyright": [" error could potentially reveal which contacts might be causing trouble or more troubleshooting clues.\n\nI'd like to avoid rooting my phone, but I do have a full Android SDK and source environment set up. I've tried using DDMS but haven't been able to make it show if/which requests are being sent to the server.\n\nshare|improve this question\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nBrowse other questions tagged or ask your own question."]}