Update Browserless Playwright to 1.4.4
vincentdavis
PROOP

2 years 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

2 years ago

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


2 years ago

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

vincentdavis
PROOP

2 years 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?


2 years ago

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


vincentdavis
PROOP

2 years ago

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


2 years 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

2 years ago

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


2 years 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


2 years ago

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


vincentdavis
PROOP

2 years 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

2 years ago

what version of the playwright client are you using?


vincentdavis
PROOP

2 years ago

1.41


vincentdavis
PROOP

2 years ago

pip install playwright==1.41.0


2 years ago

have you checked out the example repo?


vincentdavis
PROOP

2 years ago

ya


vincentdavis
PROOP

2 years ago

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


2 years ago

correct, its only a demo app


vincentdavis
PROOP

2 years ago

I should be able to connect over the public url


vincentdavis
PROOP

2 years ago

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


2 years ago

yes, i can reproduce, ill try some things


vincentdavis
PROOP

2 years ago

I can share the code I am using.


2 years ago

i can reproduce with the example repo


vincentdavis
PROOP

2 years ago

Your getting the same error as me?


2 years ago

yes


vincentdavis
PROOP

2 years ago

😂


2 years ago

if you solve this before me, let me know haha


vincentdavis
PROOP

2 years 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)


2 years ago

uh thats not how it works


vincentdavis
PROOP

2 years ago

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


2 years ago

ive updated the example and the template


2 years ago

hard refresh your browser and deploy a new browserless template


2 years ago


vincentdavis
PROOP

2 years ago

Looking


vincentdavis
PROOP

2 years ago

I thought I corrected for that typo


vincentdavis
PROOP

2 years ago

I'll relaunch


2 years ago

typo?


2 years ago

you need the updated browserless template


vincentdavis
PROOP

2 years ago

I looked at your changes.


vincentdavis
PROOP

2 years ago

I was using the BROWSER_PLAYWRIGHT_ENDPOINT


vincentdavis
PROOP

2 years ago

Waiting for it to finish the deployment.


2 years ago

have you deployed a new browserless template?


vincentdavis
PROOP

2 years ago

yes


vincentdavis
PROOP

2 years ago

it works now 🥳


2 years ago

awsome


vincentdavis
PROOP

2 years ago

That only wasted a few days 🙂


2 years ago

should have come here sooner


vincentdavis
PROOP

2 years ago

Thank you for your help!!!!


2 years ago

no problem!


vincentdavis
PROOP

2 years ago

I should have


vincentdavis
PROOP

2 years ago

I got to sign off, thnaks again


Loading...