Check utf8 encoding… Try, with only one data in your array..
With php I work like this. $APEserver = 'http://ape.'.DOMAINEBASE.':6969/?'; $APEPassword = APEPASSWORD; $cmd = array(array( 'cmd' => 'inlinepush', 'params' => array( 'password' => $APEPassword, 'raw' => 'postmsg', 'channel' => $compte, 'data' => array( //Note: APE wait for data array in this sheme 'message' => '', 'operation' => 'operator', 'id' => $numoperator ) ) )); $data = file_get_contents($APEserver.rawurlencode(json_encode($cmd))); // $data must contain the json APE response.. $response=json_decode($data); Test with only a part to start.. De : [email protected] [mailto:[email protected]] De la part de RR Envoyé : jeudi 11 septembre 2014 05:38 À : [email protected] Objet : [APE Project] error while trying to do inline push (from app. server to Ape server) Want to do inline push from application server: 1. server is aware of channel name 2. browser clients are connected to same channel Data which application server sends to APE server to perform inline push is: cmd = [{'cmd' : 'testpush', 'params' : {'password' : 'testpasswd', 'x' : 50, 'channel' : 'NTI276630', 'y' : 60, 'data' : { 'message' : 'moved', 'message1' : 'updated' }}}] Note: Using http method get to transport above data I am getting below error message, what should be possible cause any guess: [{u'raw': u'ERR', u'data': {u'code': u'005', u'value': u'BAD_JSON'}, u'time': u'1410398762'}] -- -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/ --- You received this message because you are subscribed to the Google Groups "APE Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/ --- You received this message because you are subscribed to the Google Groups "APE Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
