This commit is contained in:
2023-11-07 18:09:45 +00:00
parent d77e5b83d9
commit e86bb56a06
2 changed files with 2 additions and 5 deletions

View File

@@ -570,11 +570,6 @@ namespace AyaNova.Biz
//API DOCS http://www.puppeteersharp.com/api/index.html
log.LogDebug($"Launching headless Browser and new page now:");
//bugbug: if browser fails to launch return error to user is not expected format json but text instead as there is no handling here
//this should be wrapped in an outer try block that handles browser failing to launch and returns clean error object JSON formatted
//and explaining server error see server error log with some indicative text like "render engine failed to launch"
//i.e. intentionally without the word browser to not confuse the user
using (var browser = await Puppeteer.LaunchAsync(lo))
using (var page = (await browser.PagesAsync())[0])
{