Bug: (Failed to download Chrome for Linux from https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chrome-linux64.zip). #2457
Replies: 7 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Do you mean the ex in throw new error(failed to download chrome for linux, ex)? |
Beta Was this translation helpful? Give feedback.
-
Yes. Can you share the inner exception and the stack trace? |
Beta Was this translation helpful? Give feedback.
-
Here is my inner exception { "Value": "One or more errors occurred. (An exception occurred during a WebClient request.)", "Formatters": [], "ContentTypes": [], "DeclaredType": null, "StatusCode": 400 } |
Beta Was this translation helpful? Give feedback.
-
If you want to run that in azure functions you will have to use a docker image. You won't want to download the browser on every run. This is quite an old post but it should help you get started https://www.hardkoded.com/blog/running-puppeteer-sharp-azure-functions |
Beta Was this translation helpful? Give feedback.
-
I had the same problem and it was because it couldn't write the downloaded file to the download location.
You will need to read the download.GetExecutablePath() to find the chrome driver has been downloaded to. |
Beta Was this translation helpful? Give feedback.
-
Having the same issue but at GH workflow. Have anyone else resolved this issue? |
Beta Was this translation helpful? Give feedback.
-
Description
[Description of the issue]
I use the default example of PuppeterSharp for Generate PDF Files and i got an error like title said.
When I look into the code, my code fails when using await browserFetcher.DownloadAsync();
Specifically when the code calls await _customFileDownload
Complete minimal example reproducing the issue
I already put my api in Azure Functions Linux https://htmltopdffunclinux.azurewebsites.net/api/converted
Just call an api with URL as a request body
You can use postman for this
E.g.
// Act
...
// Assert
...
Beta Was this translation helpful? Give feedback.
All reactions