When submitting moves using coronaCloud.submitMove, most of the time the 1st move in a match does not seem to take… I turned on debugging on the cloud code and no errors are generated. but when I go to get the moves using getRecentMoves I get a result with a blank table. Sometimes this works, and after you get past getting the first move recorded, the other moves get added fine. So I know my get moves code is working,… But getting new ones going is not working but one in 20 tries.
Here is the log from the move submit that did not take:
Submitting a Move for Game:516488142d26bb74fc00000a
Corona Cloud:
Corona Cloud: – POST Call —
Corona Cloud: Post URL: https://api.coronalabs.com
Corona Cloud: Post Path: matches/516488142d26bb74fc00000a/move.json
Corona Cloud: Post Parameters: auth_token=9a7b0c5f79de02e584a6204398d62bfd47910f
54&target_user_id=mcreichle&content=eyJzY29yZVBsYXllcjIiOjAsImN1cnJlbnRUaWxlU2V0
…
OjI0LCJwbGF5ZWRUaWxlcyI6W3sidGlsZVR5cGUiOiJJIiwiZ3JpZFBvcyI6MTEyfSx7InRpbGVUeXBl
IjoiVCIsImdyaWRQb3MiOjExM30seyJ0aWxlVHlwZSI6IloiLCJncmlkUG9zIjoxMTF9XX1dLCJwbGF5
ZXIyIjpbXX19
Corona Cloud: ----------------
Corona Cloud:
Post Request: https://api.coronalabs.com/matches/516488142d26bb74fc00000a/move.j
son
Corona Cloud: Move Submitted: {"_id":“516488342d26bb74fc00001f”,“content”:"eyJzY
29yZVBsYXllcjIiOjAsImN1cnJlbnRUaWxlU2V0UGxheWVyMiI6W3sidmFsIjo0LCJ0aWxlIjoiWSJ9L
…
SI6IloiLCJncmlkUG9zIjoxMTF9XX1dLCJwbGF5ZXIyIjpbXX19",“created_at”:"2013-04-09T21
:29:24+00:00",“group_id”:null,“match_id”:“516488142d26bb74fc00000a”,“payload”:nu
ll,“sender_id”:“516488142d26bb74fc00000c”,“sent_at”:null,“target_user_id”:“mcreichle”,“updated_at”:“2013-04-09T21:29:24+00:00”,“user_alert”:null}
Here is the log from a move that was uploaded successfully:
Submitting a Move for Game:5162c4af46617ed7c4000016
Corona Cloud:
Corona Cloud: – POST Call —
Corona Cloud: Post URL: https://api.coronalabs.com
Corona Cloud: Post Path: matches/5162c4af46617ed7c4000016/move.json
Corona Cloud: Post Parameters: auth_token=e04f85020cd79fad262730f219b2abdcbc00bc
66&target_user_id=mswmcr&content=eyJzY29yZVBsYXllcjIiOjc0LCJjdXJyZW50VGlsZVNldFB
sYXllcjIiOlt7InZhbCI6MywidGlsZSI6IiMifSx7InRpbGUiOiIjIiwidmFsIjozfSx7InRpbGUiOiI
jIiwidmFsIjozfSx7InRpbGUiOiJaIiwidmFsIjoxMH0seyJ0aWxlIjoiIyIsInZhbCI6M30seyJ0aWx
lIjoiSyIsInZhbCI6NX0seyJ0aWxlIjoiQyIsInZhbCI6M30seyJ2YWwiOjEsInRpbGUiOiJMIn1dLCJ
…
UeXBlIjoiTyIsImdyaWRQb3MiOjg4fV19LHsibW92ZURhdGUiOjEzNjU1NDM2NjIsIndvcmRzIjpbeyJ
3b3JkU2NvcmUiOjcsIndvcmQiOiJCTyJ9XSwic2NvcmUiOjcsInBsYXllZFRpbGVzIjpbeyJ0aWxlVHl
wZSI6IkIiLCJncmlkUG9zIjo5Nn1dfV19fQ==
Corona Cloud: ----------------
Corona Cloud:
Post Request: https://api.coronalabs.com/matches/5162c4af46617ed7c4000016/move.j
son
Corona Cloud: Move Submitted: {"_id":“51648af12d26bbc724000004”,“content”:"eyJzY
29yZVBsYXllcjIiOjc0LCJjdXJyZW50VGlsZVNldFBsYXllcjIiOlt7InZhbCI6MywidGlsZSI6IiMif
Sx7InRpbGUiOiIjIiwidmFsIjozfSx7InRpbGUiOiIjIiwidmFsIjozfSx7InRpbGUiOiJaIiwidmFsI
joxMH0seyJ0aWxlIjoiIyIsInZhbCI6M30seyJ0aWxlIjoiSyIsInZhbCI6NX0seyJ0aWxlIjoiQyIsI
…
GVUeXBlIjoiRSIsImdyaWRQb3MiOjg5fSx7InRpbGVUeXBlIjoiTyIsImdyaWRQb3MiOjg4fV19LHsib
W92ZURhdGUiOjEzNjU1NDM2NjIsIndvcmRzIjpbeyJ3b3JkU2NvcmUiOjcsIndvcmQiOiJCTyJ9XSwic
2NvcmUiOjcsInBsYXllZFRpbGVzIjpbeyJ0aWxlVHlwZSI6IkIiLCJncmlkUG9zIjo5Nn1dfV19fQ=="
,“created_at”:“2013-04-09T21:41:05+00:00”,“group_id”:null,“match_id”:"5162c4af46
617ed7c4000016",“payload”:null,“sender_id”:“5162c4af46617ed7c400001a”,“sent_at”:
null,“target_user_id”:“mswmcr”,“updated_at”:“2013-04-09T21:41:05+00:00”,"user_al
ert":null}
The code to submit the move is really simple:
coronaCloud.submitMove(gameBlob,nil,userName,gameID,nil)
Any insight?
Mike