I've wrote a simple NodeJs
(ExpressJs) server that uses Puppeteer
to generate PDF files on JSON data being passed to it. While locally everything is working like charm, I'm struggling to run this server on Azure App Services
.
I've created a Resource group
, within it I've created an App Servces instance
(running on Linux
) that is connected to my repo at Azure DevOps
(via the Deployment Center
).
My server has two endpoints:
- / - returns a JSON - { status: "ok" }. I'm using this to validate the running server instance.
- /generate-pdf - uses the
Puppeteer
to generate and return a PDF file.
After successfully starting the App Service instance
I'm able to access the "/" route and get a valid response but upon accessing the "/generate-pdf" route the result is "502 - Bad Gateway".
- Does my instance require some additional configuration that I haven't done?
- Does
App Services
can not runPuppeteer
? Perhaps there is a different service on Azure that I need to use? - Is there a way to automate the process via the
Azure DevOps
pipeline or release?
Any questions/thoughts/FAQs are more than welcomed. Thanks =)