Log with lower severity when resources.json is not found
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, node.js
- Domain
- backend
Research direction
Start by locating the code path that loads resources.json and emits “Unable to load the default resources.json file.” Confirm the behavior when the file is absent with code execution enabled, then verify the export-server logs no longer show this message at warning severity.
Written by the indexing model from the issue text.
Description
Export server version: v5.0.0
Highcharts version: 10.2.1
Configuration:
CUSTOM_LOGIC_ALLOW_CODE_EXECUTION = true(code execution is allowed to support passing JS functions to formatters)--enableServer 1(as was already mentioned in https://github.com/highcharts/node-export-server/issues/451#issuecomment-2008524099, setting env variableSERVER_ENABLEdoes not work and it has to be passed as parameter in ENTRYPOINT)
Current behaviour:
When code execution is allowed, the server assumes that there should be resources.json file and if there is none, it issues a warning.
Expected behaviour:
Server does not log message with warning severity.
Export server logs:
2025-04-05 14:52:14 Sat Apr 05 2025 12:52:14 GMT+0000 [warning] - [chart] Unable to load the default resources.json file.
- Dominant language
- JavaScript
- Stars
- 368
- Forks
- 265
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from highcharts/node-export-server
-
Update Puppeteer to version 25.11.0+ to allow ARM64 linux images to run node-export-serverPossibly taken @daniatic claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
highcharts/node-export-server#686 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
highcharts/node-export-server#680 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
highcharts/node-export-server#679 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
highcharts/node-export-server#678 ·
-
Not working on s390xOpen
Difficulty 4/5 3-5 days Newbie friendliness 30/100
highcharts/node-export-server#676 ·
All issues in highcharts/node-export-server
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
answerLoops/answerLoops#344 ·
Maintainers usually reply within 1 day
-
Engineering
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
techmatters/terraso-web-client#3095 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Service process inherits the caller's cwd at first use, holding that folder open on Windows (EBUSY)Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/viewer#3424 · 1 comment ·
Maintainers usually reply within 1 day