I have a project runing in dotnet8.0 which was runing (in local) a highchart server using the npm package highcharts-export-server version 2.0.24. It was initially based on node version 12.14.
This project is deployed in an Azure web application using the dotnet 8.0 stack.
In this project I had one API that was just doing a call to this highcharts-export-server and then was returning the chart.
But since the summer change time, all my charts are showing all the data 1 hour before the real hour. (but all chart generated on a period before the summer change time are on the good hour).
Highchart version 3.0.1 fixed the issue so I tried to update the version and since that my server isn’t running correctly anymore.
First of all highcharts-export-server need a node version higher than 16.16.0 therefore I updated my node version to 20.14.0 to have the last up to date.
I updated my highcharts-export-server package to version 3.0.1 and then tried to publish.
When I published I had a problem due to puppeteer (new dependency added by highcharts-export-server v3.0.1) I had the following error :
(https://i.sstatic.net/6KgevFBM.png)
So I ran the npx puppeteer browsers install chrome
command at the beginning of my project in the folder containing my node.exe.
And I had the following error :
So I decided to create an API allowing me to execute some command in order to install chrome this way and it worked ! I could install chrome but I had still the same error as the first time : puppeteer wasn’t able to find the chrome version installed. I tried to find it myself by navigating through the folder and I couldn’t find my chrome version neither (even by reaching the path I got by running the npx puppeteer browsers install chrome
command).
So I tried to change the puppeteer cache folder in order to have it at the root of my project and be sure that I could find chrome.
So in my application environments variable I added the PUPPETEER_CACHE_DIR to C:/home/site/wwwroot
and added chrome from my computer (installed by running the puppeteer command) via ftp.
Once again, chrome is correctly installed in the folder C:/home/site/wwwroot/chrome but now in my highcharts-export-server log I have the following error :
(https://i.sstatic.net/cwj0719g.png)
So I tried by running the command directly in my project using my API and got the exact same result.
So I tried to add another environment variable of puppeteer : PUPPETEER_EXECUTABLE_PATH and set up my path the the chrome executable : C:/home/site/wwwroot/chrome/win64-125.0.6422.141/chrome-win64/chrome.exe
And now I jave the following error :
(https://i.sstatic.net/gwtQET7I.png)
Then the server starts correctly but can’t find any worker so I can’t generate any charts.
How can I make it work ?