[ERR][mod_json_cdr.c][Got error [500] posting to web server]
Hi All, I am using Mod_json to store cdr in MySQLDB, i have successfully configured that and data is successfully inserted in Database. But i got this error on CLI. I don't know why i get this error and how can i get ride of that. *2014-12-23 10:03:53.157185 [ERR] mod_json_cdr.c:396 Got error [500] posting to web server [http://localhost/cgi-bin/bilal.py <http://localhost/cgi-bin/bilal.py>]* *2014-12-23 10:03:53.157185 [ERR] mod_json_cdr.c:403 Retry will be with url [http://localhost/cgi-bin/bilal.py <http://localhost/cgi-bin/bilal.py>]* *2014-12-23 10:03:53.157185 [ERR] mod_json_cdr.c:414 Unable to post to web server* Regards Bilal Abbasi
are you actually getting a 500 posting to the web server?
On Dec 23, 2014, at 1:23 PM, Bilal Abbasi <bilaln018@gmail.com> wrote:
Hi All, I am using Mod_json to store cdr in MySQLDB, i have successfully configured that and data is successfully inserted in Database. But i got this error on CLI. I don't know why i get this error and how can i get ride of that.
2014-12-23 10:03:53.157185 [ERR] mod_json_cdr.c:396 Got error [500] posting to web server [http://localhost/cgi-bin/bilal.py <http://localhost/cgi-bin/bilal.py>] 2014-12-23 10:03:53.157185 [ERR] mod_json_cdr.c:403 Retry will be with url [http://localhost/cgi-bin/bilal.py <http://localhost/cgi-bin/bilal.py>] 2014-12-23 10:03:53.157185 [ERR] mod_json_cdr.c:414 Unable to post to web server
Hello, the web server expects the script to run without error and get any output from it to push back to the client (in this case - freeswitch). If your script works (I assume it does, because you said that the data gets in the database), then using a simple 'print "OK"' in the end of the script will fix it. Cheers, Iskren Hadzhinedev On 23.12.2014 г. 20:40:49, Bilal Abbasi <bilaln018@gmail.com> wrote: Hi All, I am using Mod_json to store cdr in MySQLDB, i have successfully configured that and data is successfully inserted in Database. But i got this error on CLI. I don't know why i get this error and how can i get ride of that. 2014-12-23 10:03:53.157185 [ERR] mod_json_cdr.c:396 Got error [500] posting to web server [http://localhost/cgi-bin/bilal.py [http://localhost/cgi-bin/bilal.py]] 2014-12-23 10:03:53.157185 [ERR] mod_json_cdr.c:403 Retry will be with url [http://localhost/cgi-bin/bilal.py [http://localhost/cgi-bin/bilal.py]] 2014-12-23 10:03:53.157185 [ERR] mod_json_cdr.c:414 Unable to post to web server Regards Bilal Abbasi _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Bilal Abbasi
-
Iskren Hadzhinedev
-
Michael Jerris