Random 500 internal server error loading json data via ajax in Codeigniter project

百般思念 提交于 2019-12-12 05:29:58

问题


I am loading json data that is displayed in graph via AJAX aas implemented by the c3js library (http://c3js.org).

The function that

site = 'http://example.co.ke/';
   var debits_ = c3.generate({
    bindto: '#account-debits',
    data: {
            x: 'time',
            xFormat: formart_,
            type:"area", 
            colors: {
                credit_type: '#1ABB9C'
            },
            url: site+"dashboard/credits_data/db/"+log_data,
            mimeType: 'json'
        });

I am making about 5 to 7 similar requests at the same time.

I however get random 500 Internal server error messages. (requests work and show data or give error randomly every time I make a new request)

No error

Error

Error

Could the issue be caused by CodeIgniter session? What is a possible solution? It works well on localhost without any error but on a shared server it fails.

来源:https://stackoverflow.com/questions/32632735/random-500-internal-server-error-loading-json-data-via-ajax-in-codeigniter-proje

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!