voten-co / voten

The code that powers voten.co

Home Page:https://voten.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

500 Internal server error when posting a new post or searching for channels.

BoKKeR opened this issue · comments

There are actually 2 errors I am getting when I post

Error1
I am getting this error at all times when I post a new article. The submission windows do not close but if I refresh the website the post appears. and I am getting a 500 internal server error. I am getting this error when I delete a post too
Error1 image

Error2
I am getting this error from time to time when I post a new article. On top of the 500 Internal server error, I get 2 extra errors about the fields being undefined. This error can come up when I try to search for channels in the submission window too but sometimes the search for channels just works.

Any good way to debug this?

Error2 image

I managed to fix this issue. The errors were caused because I didn't use the right algolia API key. The right one is the admin key. In the process I found this tool. It works really well when it comes to viewing debugging errors related to laravel.

https://github.com/rap2hpoutre/laravel-log-viewer