Icon being plotted using this node export server is not expected one
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
Línea de trabajo
Empieza reproduciendo la solicitud POST contra el checkout de node-export-server en 7f5d512fe565632d2da32afbdc38662d7bf8fdef, utilizando las variables de entorno y el callback proporcionados. Inspecciona lib/server.js y la ruta de exportación alrededor del manejo modificado del cierre del socket y, a continuación, compara el icono generado con la imagen esperada; se considera terminado cuando el icono duotone de Font Awesome se renderiza correctamente sin cambiar la entrada de gráfico solicitada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I setup this node export server on our server. We followed the below steps while setting the server
Setup Steps
- git clone https://github.com/highcharts/node-export-server.git
- git checkout 7f5d512fe565632d2da32afbdc38662d7bf8fdef (for version 2.1.0)
- edited lib/server.js
from
req.on("close", function () {
connectionAborted = true;
});
to
req.socket.on("close", function () {
connectionAborted = true;
});
as the connection was getting closed.
4. used node version 20.4.0 and provided env variables as:
export HIGHCHARTS_USE_MAPS=YES
export HIGHCHARTS_USE_GANTT=YES
export HIGHCHARTS_VERSION=8.0.0
export ACCEPT_HIGHCHARTS_LICENSE=YES
export HIGHCHARTS_USE_STYLED=YES
export OPENSSL_CONF=/etc/ssl
Also, we tried using 9.2.2 version of highcharts.
5. npm install
6. npm link
7. highcharts-export-server --enableServer 1 --logLevel 4 --allowCodeExecution 1
Actual behaviour
When using POST with input
{
"type": "image/png",
"scale": 2,
"globalOptions": "{colors: [\"rgba(39,26,136,0.7)\",\"rgba(241,203,93,0.7)\",\"rgba(234,70,62,0.7)\",\"rgba(114,189,85,0.7)\",\"rgba(77,147,23,0.7)\",\"rgba(163,151,243,0.7)\"],lang: {thousandsSep: ','}}",
"infile": "{chart: {renderTo: 'test me',height: 400,width: 600},exporting: { sourceWidth:950,sourceHeight:300,enabled:false,allowHTML: true,sourceWidth: 400,sourceHeight: 400,scale: 1},credits: {enabled: true},title: {text: ''}}",
"callback": "function (chart) {chart.renderer.rect(0, 0,400,400, 8).attr({stroke: '#ccc',fill: '#fcfcfc',zIndex: 3,class:'dataSearchWidget'}).add();if (true == true) {chart.renderer.text('<span><span style=\"float: left;opacity: 1.0;class:fad fa-heart;\">'+String.fromCodePoint(parseInt('f004', 16))+'</span><span style=\"float: left;left: 0;position: absolute;opacity: 0.4;\">'+String.fromCodePoint(parseInt('10f004', 16))+'</span></span>', 40, 260,true).css({fontSize: '175px',color: '#4d545c'}).attr({zIndex: 4}).add(); }};(function(stringFromCharCode){var fromCodePoint=function(_){var codeUnits=[],codeLen=0,result=\"\";for(var index=0,len=arguments.length;index!==len;++index){var codePoint=+arguments[index];if(codePoint<=0xFFFF){codeLen=codeUnits.push(codePoint);}else{codePoint-=0x10000;codeLen=codeUnits.push((codePoint>>10)+0xD800,(codePoint%0x400)+0xDC00);}}return result+stringFromCharCode.apply(null,codeUnits);};try{Object.defineProperty(String,\"fromCodePoint\",{\"value\":fromCodePoint,\"configurable\":true,\"writable\":true});}catch(e){String.fromCodePoint=fromCodePoint;}}(String.fromCharCode));"
}
i was expected below image
but got
I am using paid version of font awesome of version 5.15.1. And duotone fonts are available in it. I am using thie very fonts and able to plot the expected icon when using specific class, but getting error using this server.
Question
Can you please help here in this problem and provide suggestion. Also, updating highcharts version from this 2.1.0 requires major change in input chartscript so that is also not the viable idea here.
- Lenguaje dominante
- JavaScript
- Estrellas
- 368
- Forks
- 265
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de highcharts/node-export-server
-
Update Puppeteer to version 25.11.0+ to allow ARM64 linux images to run node-export-serverPosiblemente ocupada @daniatic la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
highcharts/node-export-server#686 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
highcharts/node-export-server#680 · 1 comentario ·
-
How to get a response statusAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
highcharts/node-export-server#679 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
highcharts/node-export-server#678 ·
-
Not working on s390xAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
highcharts/node-export-server#676 ·
Todos los issues de highcharts/node-export-server
Issues similares
-
ci-install-db-tools stall-case tests flake: stalled apt-get can be killed before it logs its callAbiertoeffort:low model:light plan planner:opus-5-5 tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Bug 🐞
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mozilla-mobile/firefox-ios#35986 ·
Los mantenedores suelen responder en 1 día
-
Hidden loading spinner keeps animating after connect, causing high idle CPU usage in FirefoxAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
bug(sight): the dashboard's text truncations split surrogate pairs and show broken charactersAbiertocomponent:sight
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
agentic-os-org/ANOLISA#6738 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug Durable Agents Observability (AI Telemetry) status: needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
mastra-ai/mastra#26470 · 1 comentario ·
Los mantenedores suelen responder en 1 día