eggplantSword's avatar

Get request on server returning 500 error

I'm using Inertia.js to do the request, it works perfect locally but when tried on the server it returns a 500 error

GET http://url.com/result/filter?period=&major=&course=&school= 500 (Internal Server Error)

This is the code

getFiltered() {
     this.$inertia.replace('/result/filter', {
         method: 'get',
         data: {
             period: this.filters.period_id,
             major: this.filters.major_id,
             course: this.filters.course_id,
             school: this.filters.school
         }
     })
         .then(() => {
             if (this.$page.auth.user.flash.success) {
                 this.survey_question = this.$page.auth.user.flash.success[0];
        },
}

It doesn't give me any clues apart from a 500 error, how can I fix it or figure out why I'm getting this error?

0 likes
2 replies
eggplantSword's avatar

@martinbean I checked on that day and this is what appears

[2020-07-10 07:11:36] local.ERROR: View [errors.404] not found.
[2020-07-10 11:27:10] local.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 798720 bytes)

I did the same thing again and the 500 error is still there but no log appeared for today

Please or to participate in this conversation.