Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBen Falk
3,167 PointsFIXED: Laravel / Homestead NGINX 502 Errors
Anyone running into Nginx 502 errors when trying to work with Laravel Homestead? One minute it was working fine... then next I'm running into issues. I've tried deleting the VM and rebuilding it using "vagrant up", but I get the same thing. Any idea where I look for error logs?
EDIT: Looks like it is a code issue of some kind, related to saving data somehow. For example, it worked fine for a while... then I tried to submit a new to do list item, and I get the error on all URLs in the application. If there is a way to see logs and figure out what might be the issue, that would be helpful?
1 Answer
Philip Cox
14,818 PointsSorry to be so vague, but I cannot remember my exact resolution. I also ran into this, it turned out to be a mistake on my part in the code. Try and back track until it goes. I think it was View related.
Ben Falk
3,167 PointsBen Falk
3,167 PointsThanks. It ended up being that -- I misspelled "Session" in the main.blade.php file, which of course affected all pages in the application.
I just wish I was shown a Laravel-based error message rather than this very vague server error page which doesn't tell me anything...