I tried to execute an azure function based on Python and get this problem
PLAYWRITH_BROWSERS_PATH=0 is already set, also I tried put playwright install on requeriments.txt but it doesn't work either. I've thinking in add a task in tasks.json on .vscode path but I don't know how to do it.
PLAYWRITH_BROWSERS_PATH=0
Please make sure your above configuration was correct. There are some spelling mistakes in the settings. Its like PLAYWRIGHT_BROWSERS_PATH = 0
In your local.settings.json it should be
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "python",
"PLAYWRIGHT_BROWSERS_PATH": "0"
}
}
And In your requirement.txt file it should be
azure-functions
playwright==1.18.0
here we can see the playwright running in local as well as azure after deployment
Local:
Azure: