hello, im constantly getting "*The browser context is undefined. This means the CDP connection to th

hello, im constantly getting "The browser context is undefined. This means the CDP connection to the browser failed". this is for stagehand. using the following code as taken from the docs..

const stagehand = new Stagehand({
env: "LOCAL",
localBrowserLaunchOptions: { cdpUrl: endpointURLString(env.BROWSER) },
llmClient: new WorkersAIClient(env.AI),
verbose: 1,
});

await stagehand.init(); //errors here
const page = stagehand.page;

await page.goto('https://demo.playwright.dev/movies');

anyone get this working.

its being called from a CF workflow for context.

i have used the CF browser rendering successfully with pupetteer from the same project.
Was this page helpful?