question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Error at show HTML report

See original GitHub issue

Context:

  • Playwright Version: playwright/test 1.16.3
  • Operating System: Windows
  • Node.js version: 16.13
  • Browser: All
  • Extra: [any specific details about your environment]

Code Snippet

node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::9323
    at Server.setupListenHandle [as _listen2] (node:net:1334:16)
    at listenInCluster (node:net:1382:12)
    at Server.listen (node:net:1469:7)
    at HttpServer.start (D:\Software Testing\Projects\SA_repos\TRACKING_automated_regression_tests\node_modules\playwright-core\lib\utils\httpServer.js:85:18)
    at showHTMLReport (D:\Software Testing\Projects\SA_repos\TRACKING_automated_regression_tests\node_modules\@playwright\test\lib\reporters\html.js:103:28)
    at HtmlReporter.onEnd (D:\Software Testing\Projects\SA_repos\TRACKING_automated_regression_tests\node_modules\@playwright\test\lib\reporters\html.js:72:15)
    at Multiplexer.onEnd (D:\Software Testing\Projects\SA_repos\TRACKING_automated_regression_tests\node_modules\@playwright\test\lib\reporters\multiplexer.js:73:7)
    at Runner._run (D:\Software Testing\Projects\SA_repos\TRACKING_automated_regression_tests\node_modules\@playwright\test\lib\runner.js:400:7)
Emitted 'error' event on Server instance at:
    at emitErrorNT (node:net:1361:8)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'EADDRINUSE',
  errno: -4091,
  syscall: 'listen',
  address: '::',
  port: 9323
}

Describe the bug

After test finishes and html report is to be auto served, the error displayed above is thrown. When I try to open http://localhost:9323, the HTML report is shown, although it is not fully functional - for example clicking on the failed test case to show details will open only blank page.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
pavelfeldmancommented, Nov 9, 2021

The issue is that there is a process running on your system that keeps the 9223 port open. You should find the process that keeps the port open and kill it!

2reactions
mxschmittcommented, Nov 9, 2021

~~Update: I was able to reproduce it! ~~

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG: HTML report opens in IE but not FF/Chrome from server
I am trying to publish my HTML report in Jenkins after each test run. ... It does work in IE with no error...
Read more >
Error while generating HTML report using JMeter@5.4.3
I am getting following error when trying to generate HTML report using that csv file. An error occurred: Error while processing samples: ...
Read more >
When report generation fails due to timeout, error message is ...
The generating of the report takes longer than the default command timeout (property generate_report_ui.generation_timeout), which is 120000 ms.
Read more >
[JENKINS-59511] Error opening report with HTML Publisher
Details · Type: Bug · Status: Reopened (View Workflow) · Priority: Minor · Resolution: Unresolved · Component/s: htmlpublisher-plugin · Labels: None.
Read more >
Debugging HTML - Learn web development | MDN
So there we have it, an introduction to debugging HTML, which should ... For example, the following shows an error reported when trying...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found