voten-co / voten

The code that powers voten.co
https://voten.co
Apache License 2.0
1.26k stars 231 forks source link

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

Closed BoKKeR closed 6 years ago

BoKKeR commented 6 years ago

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

BoKKeR commented 6 years ago

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