Question

BrandonTS on Wed, 30 Oct 2019 02:32:31


I've deployed a Nodejs(Typescript) app to an Azure Function App running Window OS however I get the following error when trying to launch Chrome:

 Error: spawn UNKNOWN
       at ChildProcess.spawn (internal/child_process.js:358:11)
       at Object.spawn (child_process.js:533:9)
       at Launcher.launch (D:\home\site\wwwroot\node_modules\puppeteer\lib\Launcher.js:132:40) errno: 'UNKNOWN', code: 'UNKNOWN', syscall: 'spawn' }
 

I've come across a few older articles stating that Azure Function apps run windows in sandbox mode with limitations. Are these limitations still active and do we know for sure this is the root cause of the unknown error?

Has anyone successfully ran puppeteer in an Azure Function App on Windows OS without using a Docker Image or Browserless?

Replies

KetanChawda-MSFT on Wed, 30 Oct 2019 05:02:49


Hello Brandon,

Yes the sandbox limitation are still applicable if you are running on windows box. The best way is to go with Azure Functions Docker image.