Crush on Upload JSON File

0 votes

Hi, 

I'm trying to upload my game data, 

I've succed to upload some of my data, but in this case my app suddenly force close, every time i try to upload it.

may be some one can help me to fix the problem, bcz i've tried it many days, still don't get the right solution.

thanks for help.

here is the json data,

{

"farmName":"finn",
"farmId":"5735b5b9e4b03d19522f8fa4",
"accessory":[
{"id":1,"level":1,"tipe":2001,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":45,"baris":40,"noBuilder":0,"posX":1192.0,"posY":550.0,"scale":0.9,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":2,"level":1,"tipe":2001,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":43,"baris":42,"noBuilder":0,"posX":1138.0,"posY":578.0,"scale":0.9,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":3,"level":1,"tipe":2001,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":44,"baris":41,"noBuilder":0,"posX":1165.0,"posY":564.0,"scale":0.9,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":4,"level":1,"tipe":2001,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":42,"baris":43,"noBuilder":0,"posX":1111.0,"posY":592.0,"scale":0.9,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":5,"level":1,"tipe":2001,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":41,"baris":44,"noBuilder":0,"posX":1084.0,"posY":606.0,"scale":0.9,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":6,"level":1,"tipe":2002,"tipeBentuk":2 ,"tipeUpgrade":0,"kolom":63,"baris":54,"noBuilder":0,"posX":1678.0,"posY":746.0,"scale":-1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":7,"level":1,"tipe":2002,"tipeBentuk":2 ,"tipeUpgrade":0,"kolom":62,"baris":53,"noBuilder":0,"posX":1651.0,"posY":732.0,"scale":-1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":8,"level":1,"tipe":2002,"tipeBentuk":2 ,"tipeUpgrade":0,"kolom":61,"baris":52,"noBuilder":0,"posX":1624.0,"posY":718.0,"scale":-1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":9,"level":1,"tipe":2002,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":59,"baris":52,"noBuilder":0,"posX":1570.0,"posY":718.0,"scale":1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":10,"level":1,"tipe":2002,"tipeBentuk":6 ,"tipeUpgrade":0,"kolom":60,"baris":51,"noBuilder":0,"posX":1597.0,"posY":704.0,"scale":1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":11,"level":1,"tipe":2003,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":44,"baris":39,"noBuilder":0,"posX":1165.0,"posY":536.0,"scale":1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":12,"level":1,"tipe":2003,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":43,"baris":40,"noBuilder":0,"posX":1138.0,"posY":550.0,"scale":1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":13,"level":1,"tipe":2003,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":42,"baris":41,"noBuilder":0,"posX":1111.0,"posY":564.0,"scale":1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":14,"level":1,"tipe":2003,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":41,"baris":42,"noBuilder":0,"posX":1084.0,"posY":578.0,"scale":1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1},
{"id":15,"level":1,"tipe":2003,"tipeBentuk":1 ,"tipeUpgrade":0,"kolom":40,"baris":43,"noBuilder":0,"posX":1057.0,"posY":592.0,"scale":1.0,"year":0,"month":0,"date":0,"hour":0,"min":0,"sec":0,"state":1,"stateUpgrade":1}
]
}
 
asked May 20, 2016 in Cocos2D-X by imam_choy (12 points)

1 Answer

0 votes
Hi Imam,

I tried to reproduce the issue at my end but it is working fine. Could you please share some more details like code snippet you are using, the platform on which you are getting this issue?

It will help to debug the problem.

Thanks.
answered May 21, 2016 by rajeev.etc (1,660 points)
thanks for your response,
i'm using cocos2dx v3.7 and i got that problem,
But a few days ago i tried to fix it and found that i have to change a variable
HMAC_BUF_LEN        = 4096  (need to increase this value)
in file HMAC_SHA1.h
now it runs well
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...