Which web server are you using?
Laravel app not responsive to other requests while making Guzzle request
Hello, I'm trying to generate PDFs using Browserless PDF Api from views from my Laravel App. Right now my app is using Sail, and Browserless is running in Docker, sharing a Network so they can communicate. I have a simple route that makes a GuzzleHttp request to my Browserless instance, using the /pdf endpoint. If i provide an external URL like https://google.com, I successfully get a PDF after a few seconds. But as soon as I provide an URL pointing to my app, the action times out. Using Postman to make the same request does generate a PDF from my app, so Browserless can communicate with the Sail server. But I've noticed that the whole app becomes unresponsive while making a GuzzleHttp request, and that why I get a timeout when the app calls Browerless with an URL from itself. Any thoughts on why making a request using GuzzleHttp would block the whole website ?
Thank you
@louisjeck Sail uses artisan serve as its webserver. This is single-threaded and therefore you cannot place a request on the site from a request on the same site.
Please or to participate in this conversation.