Thursday, February 1, 2018

Jasper API Call returning 500 error for larger reports in Laravel - development

Jasper API Call returning 500 error for larger reports in Laravel

I am using Larevel (PHP Framework) and have integrated Jasper API for reporting. It is working for small reports which usually takes less that 60 seconds to process. But jasper throws 500 Internal error for large reports which usually takes 2-3 minutes processing time to laravel. When I run same report on Jasper panel it works but it throws an error (code 500) to Laravel from API Call.

$.ajax({
                type: "POST",
                url: base_url+'admin/get-report-details',
                data:   $('form#jsperReports').serialize(), 
                dataType:'json',
                timeout:1200000, 
                beforeSend: function(){ 
                    $('#reportDetailsRow').addClass('hide');
                    var dialog = bootbox.dialog({
                        message: '<p class="text-center">Please wait while we do something...</p>',
                        closeButton: false
                    });
                },
                success:function(data){ 
                    $('.modal').modal('hide');
                    if(!!data && data.success == true){
                            $('#reportDetails').html(data.html);
                            $('#reportDetailsRow').removeClass('hide');
                    }else if (!!data && data.success == false) {
                        showMsgModel("Error",data.msg)
                    }
                }
            });

Am I missing any configuration or do I need to do any other setting while making API Call to Jasper from Laravel?



from Laravel Questions and Answers https://laravelquestions.com/laravel/jasper-api-call-returning-500-error-for-larger-reports-in-laravel/
via Lzo Media

No comments:

Post a Comment