Update Browserless Playwright to 1.4.4
vincentdavis
PROOP

a year ago

I am using the Browserless template. It seems to be using Playwright 1.41. but I am using 1.44. I don't see how I can update this? Suggestions on how to fix this?
https://github.com/railwayapp-templates/browserless

╔════════════════════════════════════════════════════╗
║ Playwright version mismatch:                       ║
║   - server version: v1.41                          ║
║   - client version: v1.44                          ║
║                                                    ║
║ If you are using VSCode extension, restart VSCode. ║
║                                                    ║
║ If you are connecting to a remote service,         ║
║ keep your local Playwright version in sync         ║
║ with the remote service version.                   ║
║                                                    ║
║ <3 Playwright Team                                 ║
╚════════════════════════════════════════════════════╝

50 Replies

vincentdavis
PROOP

a year ago

project ID = b5f44aa4-5dc9-4336-9f3a-920b1aecc01b


brody
EMPLOYEE

a year ago

If you are connecting to a remote service, keep your local Playwright version in sync with the remote service version.

vincentdavis
PROOP

a year ago

The playwright service is in my project. I am asking how I can upgrade it. I don't understand how Playwright is getting installed. I guess it is part of the image?


brody
EMPLOYEE

a year ago

as per that message you should use the the client version of playwright to match the server version


vincentdavis
PROOP

a year ago

OR I should upgrade the server to match the client, which is what I am asking about.


brody
EMPLOYEE

a year ago

my recommendation would be the same as the recommendation given to you by the playwright devs, match your client version to the server version


vincentdavis
PROOP

a year ago

I appreciate your time. I was asking how to upgrade the server, not downgrade the client. I apologize if that was not clear.


brody
EMPLOYEE

a year ago

I know that you were asking how to upgrade the server version, but given that it's not the recommended solution I feel that there is no need to do so


brody
EMPLOYEE

a year ago

in the interest of simplicity, please follow the recommended solution as given by the playwright developers


vincentdavis
PROOP

a year ago

Ok, Sorry for being stubborn 😉
I have have done this, I still cant get my script to run. Any ideas?

  File "/Users/vincentdavis/DEV/REPO/frr/.venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 101, in inner_send
    result = next(iter(done)).result()
             ^^^^^^^^^^^^^^^^^^^^^^^^^
playwright._impl._errors.Error: Protocol error (Browser.getVersion): undefined

brody
EMPLOYEE

a year ago

what version of the playwright client are you using?


vincentdavis
PROOP

a year ago

1.41


vincentdavis
PROOP

a year ago

pip install playwright==1.41.0


brody
EMPLOYEE

a year ago

have you checked out the example repo?


vincentdavis
PROOP

a year ago

ya


vincentdavis
PROOP

a year ago

Question,
If I run the code as a script it should work right, no need to have it as a fastapi app?


brody
EMPLOYEE

a year ago

correct, its only a demo app


vincentdavis
PROOP

a year ago

I should be able to connect over the public url


vincentdavis
PROOP

a year ago

Endpoint like: wss://[browserless-staging-XXXX.up.railway.app/playwright?token=MYTOKEN](browserless-staging-XXXX.up.railway.app/playwright?token=MYTOKEN)


brody
EMPLOYEE

a year ago

yes, i can reproduce, ill try some things


vincentdavis
PROOP

a year ago

I can share the code I am using.


brody
EMPLOYEE

a year ago

i can reproduce with the example repo


vincentdavis
PROOP

a year ago

Your getting the same error as me?


brody
EMPLOYEE

a year ago

yes


vincentdavis
PROOP

a year ago

😂


brody
EMPLOYEE

a year ago

if you solve this before me, let me know haha


vincentdavis
PROOP

a year ago

I guess I might try something like changing the base image to:
FROM [mcr.microsoft.com/playwright:v1.45.0-jammy](mcr.microsoft.com/playwright:v1.45.0-jammy)


brody
EMPLOYEE

a year ago

uh thats not how it works


vincentdavis
PROOP

a year ago

I have no idea how it works, Its a mystery to me how the this service.


brody
EMPLOYEE

a year ago

ive updated the example and the template


brody
EMPLOYEE

a year ago

hard refresh your browser and deploy a new browserless template


brody
EMPLOYEE

a year ago


vincentdavis
PROOP

a year ago

Looking


vincentdavis
PROOP

a year ago

I thought I corrected for that typo


vincentdavis
PROOP

a year ago

I'll relaunch


brody
EMPLOYEE

a year ago

typo?


brody
EMPLOYEE

a year ago

you need the updated browserless template


vincentdavis
PROOP

a year ago

I looked at your changes.


vincentdavis
PROOP

a year ago

I was using the BROWSER_PLAYWRIGHT_ENDPOINT


vincentdavis
PROOP

a year ago

Waiting for it to finish the deployment.


brody
EMPLOYEE

a year ago

have you deployed a new browserless template?


vincentdavis
PROOP

a year ago

yes


vincentdavis
PROOP

a year ago

it works now 🥳


brody
EMPLOYEE

a year ago

awsome


vincentdavis
PROOP

a year ago

That only wasted a few days 🙂


brody
EMPLOYEE

a year ago

should have come here sooner


vincentdavis
PROOP

a year ago

Thank you for your help!!!!


brody
EMPLOYEE

a year ago

no problem!


vincentdavis
PROOP

a year ago

I should have


vincentdavis
PROOP

a year ago

I got to sign off, thnaks again


Loading...