-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Previous version output result error #540
Comments
Thanks for reporting @cokes04!
Definitely that's the right approach here. Unfortunately, I don't think I can see the second image that you've attached - it seems to be all black. Could you please try attaching it again (or maybe sending an imgur link)? Also, please share steps of installation/setting up your server. PS. It might be worth trying to clone the current master branch from GitHub ( |
I'm also seeing this issue when trying to run the server with the V6.2.0 version of highcharts specified. It seems to be failing when the server starts up and tries to cache the scripts locally. I suspect that what is happening is that all modules are being requested, but the newer modules that didn't exist in version 6.2.0 are all returning a 403 from the CDN, and this means that the process does not cache the rest of the source code.
I have also been trying to set what modules and indicators to download and I have had some success, but I still can't get the server working. Firstly, I suspect the documentation might be wrong on the github readme. It states that the environment variables should be HIGHCHARTS_MODULE_SCRIPTS and HIGHCHARTS_INDICATOR_SCRIPTS however the npm readme shows HIGHCHARTS_MODULES and HIGHCHARTS_INDICATORS. Using HIGHCHARTS_MODULES I was able to specify which modules to load, and this stopped the 403 errors displaying in the logs. Unfortunately I haven't been able to stop the loading of indicators-all.js and so I still get one 403 which breaks the setup process. I have tried setting both HIGHCHARTS_INDICATOR_SCRIPTS and HIGHCHARTS_INDICATORS to an empty string, but this does not work. I am trying setting the value to [] now, we will see what happens. |
So when setting the following env variable:
I get the following error in the logs:
This tells me that I have the correct environment variable, but when using an empty string in the variable then it still tries to load the indicators-all.js
Results in:
So I can't see a way to get V6.2.0 working, is anyone able to help on this? |
The attached image was not attached incorrectly, but was uploaded as is the image file output by export-server. I am performing an export by running a cli through Java. I have not set anything other than the settings below. I considered using 4.0.0 by git clone, but
highcharts-export-server --noLogo true --type "png" --constr "chart" --allowCodeExecution true --outfile "/home/exporttest/1.png" --infile "/home/exporttest/1.json"
FROM openjdk:8
COPY ./*.jar /home/exporttest/test.jar
ENV JAVA_OPTS=''
ENV HIGHCHARTS_VERSION='8.1.2'
ENV HIGHCHARTS_MODULES='stock,map,gantt,exporting,export-data,parallel-coordinates,accessibility,annotations-advanced,boost-canvas,boost,data,draggable-points,\
static-scale,broken-axis,heatmap,tilemap,timeline,treemap,item-series,drilldown,histogram-bellcurve,bullet,funnel,funnel3d,\
pyramid3d,networkgraph,pareto,pattern-fill,price-indicator,sankey,dependency-wheel,series-label,solid-gauge,sonification,\
stock-tools,streamgraph,sunburst,variable-pie,variwide,vector,venn,windbarb,wordcloud,xrange,no-data-to-display,drag-panes,\
debugger,dumbbell,lollipop,cylinder,organization,dotplot,marker-clusters'
# nodejs, highcharts-export-server install
RUN apt-get update \
&& apt-get install -y curl \
&& curl -sL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& curl -L https://www.npmjs.com/install.sh | sh \
&& npm install -g highcharts-export-server@3.1.1
# chrome install
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt-get install -y ./google-chrome-stable_current_amd64.deb \
&& rm google-chrome-stable_current_amd64.deb
ENTRYPOINT java ${JAVA_OPTS} -jar /home/exporttest/test.jar
npm install highcharts-export-server@3.1.1 -g
setx HIGHCHARTS_VERSION 9.3.2
setx HIGHCHARTS_MODULES stock,map,gantt,exporting,export-data,parallel-coordinates,accessibility,annotations-advanced,boost-canvas,boost,data,draggable-points,^
static-scale,broken-axis,heatmap,tilemap,timeline,treemap,item-series,drilldown,histogram-bellcurve,bullet,funnel,funnel3d,^
pyramid3d,networkgraph,pareto,pattern-fill,price-indicator,sankey,dependency-wheel,series-label,solid-gauge,sonification,^
stock-tools,streamgraph,sunburst,variable-pie,variwide,vector,venn,windbarb,wordcloud,xrange,no-data-to-display,drag-panes,^
debugger,dumbbell,lollipop,cylinder,organization,dotplot,marker-clusters |
Additionally, in 4.0.0, has the part where the process does not terminate after export completion been fixed? |
@cokes04 yes, it has been fixed. |
Expected behaviour
node v18.12.0
highcharts-export-server@3.1.1
HIGHCHARTS_VERSION='8.1.2'
HIGHCHARTS_MODULES='stock,map,gantt,exporting,export-data,parallel-coordinates,accessibility,annotations-advanced,boost-canvas,boost,data,draggable-points,static-scale,broken-axis,heatmap,tilemap,timeline,treemap,item-series,drilldown,histogram-bellcurve,bullet,funnel,funnel3d,pyramid3d,networkgraph,pareto,pattern-fill,price-indicator,sankey,dependency-wheel,series-label,solid-gauge,sonification,stock-tools,streamgraph,sunburst,variable-pie,variwide,vector,venn,windbarb,wordcloud,xrange,no-data-to-display,drag-panes,debugger,dumbbell,lollipop,cylinder,organization,dotplot,marker-clusters'
Actual behaviour
You cannot download resources via CDN as shown in the image above.
So, I added the HIGHCHARTS_MODULES environment variable excluding modules that cannot be imported as shown above and ran it again.
However, it is output as shown in the photo above.
It worked well when I used version 11.4.3.
However, due to licensing issues, you must use version 8.1.2.
How can I solve this?
Reproduction steps
The text was updated successfully, but these errors were encountered: