{"action":"created","issue":{"url":"https://api.github.com/repos/spark/spark-setup-android/issues/7","labels_url":"https://api.github.com/repos/spark/spark-setup-android/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/spark/spark-setup-android/issues/7/comments","events_url":"https://api.github.com/repos/spark/spark-setup-android/issues/7/events","html_url":"https://github.com/spark/spark-setup-android/issues/7","id":106473524,"number":7,"title":"\"Error calling API : Invalid json\" Error during device setup","user":{"login":"sbose78","id":545280,"avatar_url":"https://avatars.githubusercontent.com/u/545280?v=3","gravatar_id":"","url":"https://api.github.com/users/sbose78","html_url":"https://github.com/sbose78","followers_url":"https://api.github.com/users/sbose78/followers","following_url":"https://api.github.com/users/sbose78/following{/other_user}","gists_url":"https://api.github.com/users/sbose78/gists{/gist_id}","starred_url":"https://api.github.com/users/sbose78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbose78/subscriptions","organizations_url":"https://api.github.com/users/sbose78/orgs","repos_url":"https://api.github.com/users/sbose78/repos","events_url":"https://api.github.com/users/sbose78/events{/privacy}","received_events_url":"https://api.github.com/users/sbose78/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-15T04:07:04Z","updated_at":"2015-10-27T07:09:33Z","closed_at":"2015-10-27T07:09:33Z","body":"I was testing out the Android device setup on my Photon when I got the following issue after hitting \"Ready\". Here are the details to reproduce:\r\n\r\n1. Updated app's manifest file.\r\n2.  Called \r\n```\r\nParticleDeviceSetupLibrary.init();\r\nParticleDeviceSetupLibrary.startDeviceSetup(this);\r\n```\r\nin the first activity\r\n\r\n3. Got to the screen which said \"Time to setup your photon\".\r\n4. On tapping the \"Ready\" button I got the error message on the screen which said \"Could not communicate with Photon Cloud..\" The corresponding logs were:\r\n\r\n```\r\nE/Async   ( 2242): Error calling API: Error: invalid json\r\nE/Async   ( 2242): io.particle.android.sdk.cloud.SparkCloudException\r\nE/Async   ( 2242): \tat io.particle.android.sdk.cloud.SparkCloud.generateClaimCode(SparkCloud.java:342)\r\nE/Async   ( 2242): \tat io.particle.android.sdk.devicesetup.ui.GetReadyActivity$3.callApi(GetReadyActivity.java:104)\r\nE/Async   ( 2242): \tat io.particle.android.sdk.devicesetup.ui.GetReadyActivity$3.callApi(GetReadyActivity.java:101)\r\nE/Async   ( 2242): \tat io.particle.android.sdk.utils.Async$AsyncApiWorker.doInBackground(Async.java:104)\r\nE/Async   ( 2242): \tat io.particle.android.sdk.utils.Async$AsyncApiWorker.doInBackground(Async.java:70)\r\nE/Async   ( 2242): \tat android.os.AsyncTask$2.call(AsyncTask.java:288)\r\nE/Async   ( 2242): \tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\nE/Async   ( 2242): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\nE/Async   ( 2242): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\nE/Async   ( 2242): \tat java.lang.Thread.run(Thread.java:818)\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spark/spark-setup-android/issues/comments/151398482","html_url":"https://github.com/spark/spark-setup-android/issues/7#issuecomment-151398482","issue_url":"https://api.github.com/repos/spark/spark-setup-android/issues/7","id":151398482,"user":{"login":"sbose78","id":545280,"avatar_url":"https://avatars.githubusercontent.com/u/545280?v=3","gravatar_id":"","url":"https://api.github.com/users/sbose78","html_url":"https://github.com/sbose78","followers_url":"https://api.github.com/users/sbose78/followers","following_url":"https://api.github.com/users/sbose78/following{/other_user}","gists_url":"https://api.github.com/users/sbose78/gists{/gist_id}","starred_url":"https://api.github.com/users/sbose78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbose78/subscriptions","organizations_url":"https://api.github.com/users/sbose78/orgs","repos_url":"https://api.github.com/users/sbose78/repos","events_url":"https://api.github.com/users/sbose78/events{/privacy}","received_events_url":"https://api.github.com/users/sbose78/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T07:09:33Z","updated_at":"2015-10-27T07:09:33Z","body":"Hi, this worked out fine after subsequent tries, and so couldn't reproduce this at my end.\r\nThis could be closed."}}