make sure your api call has the accept: Application/json header
Aug 26, 2024
4
Level 1
Postman "Preview" Of Laravel API Errors Mangled
I'm currently developing an API using Laravel. I'm using Postman while developing. I've tried using both the Postman desktop app and just through the web browser. When Laravel throws an error and I use the Postman "Preview" to view it, I can see what the error is, but the page is mangled. If I save it to an .html file and open that, it shows the error page properly. Anyone know how to get those error messages to display properly in Postman?
Level 122
1 like
Please or to participate in this conversation.