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
2 years ago
If you are connecting to a remote service, keep your local Playwright version in sync with the remote service version.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
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
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
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): undefined2 years ago
what version of the playwright client are you using?
2 years ago
have you checked out the example repo?
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
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
2 years ago
i can reproduce with the example repo
2 years ago
yes
2 years ago
if you solve this before me, let me know haha
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
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
2 years ago
typo?
2 years ago
you need the updated browserless template
2 years ago
have you deployed a new browserless template?
2 years ago
awsome
2 years ago
should have come here sooner
2 years ago
no problem!