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] Docker html report not working as expected since 1.22

See original GitHub issue

Context:

  • Playwright Version: 1.22
  • Operating System: Mac
  • Node.js version: v16.13.2
  • Browser: All

Hi. I’m having issues with the playwright html reporter used inside a docker container and I think there was some regression error introduced between playwright version 1.21.1 and 1.22.0, because in 1.21.1 I was able to run the docker container with

Code Snippet

docker run -v $PWD:/playwright -w /playwright -it --rm -p 9323:9323 mcr.microsoft.com/playwright:v1.22.0-focal /bin/bash

and it would open the html report without problems. But since 1.22.0 it gives following message

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

Error: spawn xdg-open ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn xdg-open',
  path: 'xdg-open',
  spawnargs: [ 'http://127.0.0.1:9323' ]
}

Was there some change since 1.21.1 and 1.22 that would have caused this? Any help would be highly appreciated, as the docker setup is really quite helpful for me.

Thanks and BR

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aslushnikovcommented, Aug 23, 2022

For the record: we decided to expose host and port in html reporter config so that it can be configured to use 0.0.0.0

0reactions
aslushnikovcommented, Nov 2, 2022

Was the change of default port from 9323 to 9223 intentional?

@JoSchrader Oops it wasn’t! Let me bring it back. Thank you for noticing.

Can host and port be set when using ‘show-report’? For me its defaults to ‘http://localhost:9223/’, ignoring the settings in playwright.config.ts

@JoSchrader @queicherius Should be addressed by: https://github.com/microsoft/playwright/pull/18517

Read more comments on GitHub >

github_iconTop Results From Across the Web

1322909 – docker-1.10.3-3.gitd93ee51.fc24 fails to run anything
docker -1.10.3-4.gitf8a9a2a.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug...
Read more >
Workarounds for common problems - Docker Documentation
Docker Desktop fails to start when anti-virus software is installed. Some anti-virus software may be incompatible with Hyper-V and Microsoft Windows 10 builds. ......
Read more >
How To Run End-to-End Tests Using Playwright and Docker
In this tutorial, you will set up an environment to use Playwright with Typescript for end-to-end testing, write and execute the tests, export ......
Read more >
newman-reporter-htmlextra - npm
A Newman HTML reporter that has been extended to include the separation ... If this is not set, the report will show "Newman...
Read more >
Kubernetes (in AKS) error while pulling image from private ...
kubectl create secret docker-registry artifactory-pro -n test ... I have not found network problems between jfrog and azure aks.
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