Skip to content

Instantly share code, notes, and snippets.

@amol-c
amol-c / gist:4133205
Created November 22, 2012 22:47
Error while first time game creation
NSLocalizedRecoverySuggestion=<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Action Controller: Exception caught</title>
<style>
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: helvetica, verdana, arial, sans-serif;
{
coins = 900;
games = (
{
email = "654751412.892540143@stickyhead.com";
id = 50a4495344d2c70a00000002;
players = {
opponent = {
avatar = "https://s3.amazonaws.com/stickyheadbucket/654751412";
celebrity = {
@amol-c
amol-c / gist:4064019
Created November 13, 2012 05:07
Archive error
Error Domain=AFNetworkingErrorDomain Code=-1011 "Expected status code in (200-299), got 500" UserInfo=0x11d69670 {NSLocalizedRecoverySuggestion=<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Action Controller: Exception caught</title>
<style>
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: helvetica, verdana, arial, sans-serif;
Couldnot create player due to internet error Error Domain=AFNetworkingErrorDomain Code=-1011 "Expected status code in (200-299), got 500" UserInfo=0x1458b6a0 {NSLocalizedRecoverySuggestion=<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Action Controller: Exception caught</title>
<style>
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: helvetica, verdana, arial, sans-serif;
{
error = {
code = 1006;
message = "Game between the two players already exist";
};
id = 509ac269357a6b0a00000005;
players = {
opponent = {
avatar = "https://s3.amazonaws.com/stickyheadbucket/892540143";
celebrity = {
{
"name": "Amol Chaudhari",
"coins": 960,
totalWins:10,
totalLosses:15,
"history": [
{
"type": "question",
"gameId": "50973ca14c69ff100000000a",
"fbId": "892540143",
@amol-c
amol-c / gist:3923966
Created October 20, 2012 16:48
Activities answered JSON Format
{
date = "October 20, 2012 12:44:58";
gameId = 5082d4651e01371300000001;
"is_answered" = 1;
"is_correct" = 0;
type = question;
}
+[ServerRequest setMessage:OnPubnubFromPlayer:toOpponent:] [Line 166] upload response: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Action Controller: Exception caught</title>
<style>
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: helvetica, verdana, arial, sans-serif;
@amol-c
amol-c / gist:3903349
Created October 17, 2012 02:16
Json object
The below is sample activity object :
{"fbId":"892540143","type":"question","gameId":"507763da3ddebf1600000001","content":"Am I old and wrinkly?","is_answered":false,"date":"October 16, 2012 22:10:56","indexCount":1,"is_correct":false,"count":1}