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

Running Playwright does not work as expected #4751

Closed
B3none opened this issue Sep 10, 2023 · 4 comments
Closed

Running Playwright does not work as expected #4751

B3none opened this issue Sep 10, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@B3none
Copy link

B3none commented Sep 10, 2023

What version of Bun is running?

1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983

I also tested it on: 1.0.0+ffe4f561a3af53b9f5a41c182de55d7199b5d692

What platform is your computer?

Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

I've uploaded the code I used to run the test locally: https://github.com/B3none/bun-playwright-test

What is the expected behavior?

It should open the headless browser page in playwright without erroring.

What do you see instead?

image

$ bun src/index.ts
47 |     const e = new _errors.TimeoutError(error.error.message);
48 |     e.stack = error.error.stack || '';
49 |     return e;
50 |   }
51 |   const e = new Error(error.error.message);
52 |   e.stack = error.error.stack || '';
                ^
TypeError: launch: launch: undefined is not an object (evaluating 'pipeRead.on')
=========================== logs ===========================
<launching> /home/b3none/.cache/ms-playwright/chromium-1076/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-a1EZ12 --remote-debugging-pipe --no-startup-window
<launched> pid=124108
============================================================
      at /home/b3none/github/b3none/bun-playwright-test/node_modules/playwright-core/lib/protocol/serializers.js:52:12
error: script "start" exited with code 1 (SIGHUP)
b3none@localhost:~/github/b3none/bun-playwright-test$ 

Instead there is an error from the cli.

Additional information

It seems to be related to NodeJS.ReadableStream but I'm not really sure what's erroring because I can't see the stack trace.

https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/pipeTransport.ts#L23

@B3none B3none added the bug Something isn't working label Sep 10, 2023
@angelsbv
Copy link

Same issue here. It also happens with firefox and webkit.

@Hebilicious
Copy link

Duplicate #2492

@Electroid
Copy link
Contributor

This is a duplicate of #2492, but since a lot of people have upvoted this, we'll keep it open until it's fixed.

@nektro
Copy link
Member

nektro commented Jan 16, 2024

#2492 has now been resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants