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

Migration from 1.x to 2.x: trackingId not usable? #3869

Open
lionelhorn opened this issue Feb 22, 2024 · 0 comments
Open

Migration from 1.x to 2.x: trackingId not usable? #3869

lionelhorn opened this issue Feb 22, 2024 · 0 comments

Comments

@lionelhorn
Copy link

I was using trackingId in 1.x to be able to filter sessions.

1.x: Working

const browser = await chromium.connect(
  `${env("BROWSERLESS_URL")}/playwright?token=${env("BROWSERLESS_TOKEN")}&trackingId=${trackingId}&keepalive=${10}`
);

2.x: code below results in Query-parameter validation failed: "trackingId"

const browser = await chromium.connect(
  `${env("BROWSERLESS_URL")}/playwright/chromium?token=${env("BROWSERLESS_TOKEN")}&trackingId=${trackingId}`
);

Without using trackingId /sessions returns the following :
But without any way to filter from only the data in the initialConnectURL as it doesn't any id passed to chromium.connect

[
    {
        "id": null,
        "initialConnectURL": "http://0.0.0.0:3000/playwright/chromium/?token=rGPE7xbYV8CM6S5D&launch=%7B%7D",
        "isTempDataDir": true,
        "launchOptions": {},
        "numbConnected": 1,
        "routePath": [
            "/playwright/chromium",
            "/chromium/playwright"
        ],
        "startedOn": 1708608935817,
        "ttl": 0,
        "userDataDir": null,
        "browser": "ChromiumPlaywright",
        "browserId": "f4eca6101c564b38a36fd73b04eedcb6",
        "killURL": null,
        "running": true,
        "timeAliveMs": 6191,
        "type": "browser"
    },
    {
        "id": null,
        "initialConnectURL": "http://0.0.0.0:3000/playwright/chromium/?token=rGPE7xbYV8CM6S5D&launch=%7B%7D",
        "isTempDataDir": true,
        "launchOptions": {},
        "numbConnected": 1,
        "routePath": [
            "/playwright/chromium",
            "/chromium/playwright"
        ],
        "startedOn": 1708608935833,
        "ttl": 0,
        "userDataDir": null,
        "browser": "ChromiumPlaywright",
        "browserId": "ecbca3617f5db8af632a23e0ece15af7",
        "killURL": null,
        "running": true,
        "timeAliveMs": 6175,
        "type": "browser"
    }
]

Browserless used with docker.
ghcr.io/browserless/chromium:latest
c9f7631faa59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants