Skip to content
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

allure watch spams JSON parse error stacktrace in the terminal #73

Open
BorisOsipov opened this issue Jan 17, 2025 · 0 comments
Open

allure watch spams JSON parse error stacktrace in the terminal #73

BorisOsipov opened this issue Jan 17, 2025 · 0 comments

Comments

@BorisOsipov
Copy link

Describe the bug
allure watch spams error stack traces in the terminal

To Reproduce
Steps to reproduce the behavior:

  1. Run allure watch allure-results/ where results folder continuously adds new results
  2. Observe the counters increasing and sometimes an error stack trace.
error parsing 0e688e48-c573-4247-b32d-2abd470e8797-result.json SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at readSteamToJson (file:///home/boris.osipov/.nvm/versions/node/v22.11.0/lib/node_modules/allure/node_modules/@allurereport/reader-api/dist/resultFile.js:123:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async PathResultFile.readContent (file:///home/boris.osipov/.nvm/versions/node/v22.11.0/lib/node_modules/allure/node_modules/@allurereport/reader-api/dist/resultFile.js:52:26)
    at async PathResultFile.asJson (file:///home/boris.osipov/.nvm/versions/node/v22.11.0/lib/node_modules/allure/node_modules/@allurereport/reader-api/dist/resultFile.js:37:16)
    at async Object.read (file:///home/boris.osipov/.nvm/versions/node/v22.11.0/lib/node_modules/allure/node_modules/@allurereport/reader/dist/cucumberjson/index.js:38:32)
    at async AllureReport.readResult (file:///home/boris.osipov/.nvm/versions/node/v22.11.0/lib/node_modules/allure/node_modules/@allurereport/core/dist/report.js:75:39)

Expected behavior
Stacktraces don't appear.

Enviroment:
allure/3.0.0-beta.7 linux-x64 node-v22.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant