Update Browserless Playwright to 1.4.4

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 ║
╚════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════╗
║ 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 ║
╚════════════════════════════════════════════════════╝
GitHub
GitHub - railwayapp-templates/browserless: Deploy Browserless on Ra...
Deploy Browserless on Railway. Web browser automation built for everyone, and loved by developers. - railwayapp-templates/browserless
Solution:
If you are connecting to a remote service, keep your local Playwright version in sync with the remote service version.
If you are connecting to a remote service, keep your local Playwright version in sync with the remote service version.
...
Jump to solution
38 Replies
Percy
Percy5mo ago
Project ID: b5f44aa4-5dc9-4336-9f3a-920b1aecc01b
VincentDavis
VincentDavisOP5mo ago
project ID = b5f44aa4-5dc9-4336-9f3a-920b1aecc01b
Solution
Brody
Brody5mo ago
If you are connecting to a remote service, keep your local Playwright version in sync with the remote service version.
If you are connecting to a remote service, keep your local Playwright version in sync with the remote service version.
VincentDavis
VincentDavisOP5mo 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
Brody5mo ago
as per that message you should use the the client version of playwright to match the server version
VincentDavis
VincentDavisOP5mo ago
OR I should upgrade the server to match the client, which is what I am asking about.
Brody
Brody5mo 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
VincentDavisOP5mo 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
Brody5mo 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 in the interest of simplicity, please follow the recommended solution as given by the playwright developers
VincentDavis
VincentDavisOP5mo 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
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
Brody5mo ago
what version of the playwright client are you using?
VincentDavis
VincentDavisOP5mo ago
1.41 pip install playwright==1.41.0
Brody
Brody5mo ago
have you checked out the example repo? https://github.com/brody192/playwright-example-python
VincentDavis
VincentDavisOP5mo ago
ya Question, If I run the code as a script it should work right, no need to have it as a fastapi app?
Brody
Brody5mo ago
correct, its only a demo app
VincentDavis
VincentDavisOP5mo ago
I should be able to connect over the public url Endpoint like: wss://browserless-staging-XXXX.up.railway.app/playwright?token=MYTOKEN
Brody
Brody5mo ago
yes, i can reproduce, ill try some things
VincentDavis
VincentDavisOP5mo ago
I can share the code I am using.
Brody
Brody5mo ago
i can reproduce with the example repo
VincentDavis
VincentDavisOP5mo ago
Your getting the same error as me?
Brody
Brody5mo ago
yes
VincentDavis
VincentDavisOP5mo ago
😂
Brody
Brody5mo ago
if you solve this before me, let me know haha
VincentDavis
VincentDavisOP5mo ago
I guess I might try something like changing the base image to: FROM mcr.microsoft.com/playwright:v1.45.0-jammy
Brody
Brody5mo ago
uh thats not how it works
VincentDavis
VincentDavisOP5mo ago
I have no idea how it works, Its a mystery to me how the this service.
Brody
Brody5mo ago
ive updated the example and the template https://github.com/brody192/playwright-example-python hard refresh your browser and deploy a new browserless template https://browserless-playwright-demo.up.railway.app/
VincentDavis
VincentDavisOP5mo ago
Looking I thought I corrected for that typo I'll relaunch
Brody
Brody5mo ago
typo? you need the updated browserless template
VincentDavis
VincentDavisOP5mo ago
I looked at your changes. I was using the BROWSER_PLAYWRIGHT_ENDPOINT Waiting for it to finish the deployment.
Brody
Brody5mo ago
have you deployed a new browserless template?
VincentDavis
VincentDavisOP5mo ago
yes it works now 🥳
Brody
Brody5mo ago
awsome
VincentDavis
VincentDavisOP5mo ago
That only wasted a few days 🙂
Brody
Brody5mo ago
should have come here sooner
VincentDavis
VincentDavisOP5mo ago
Thank you for your help!!!!
Brody
Brody5mo ago
no problem!
VincentDavis
VincentDavisOP5mo ago
I should have I got to sign off, thnaks again
Want results from more Discord servers?
Add your server