gologinapp / gologin

REST API provides programmatic access to GoLogin App. Create a new browser profile, get a list of all browser profiles, add a browser profile and runnig
112 stars 82 forks source link

Client Rects (noise) does not work when running the api #144

Open crbon97 opened 2 months ago

crbon97 commented 2 months ago

It works when run directly on the app

image

it doesn't work when run under API

import GoLogin from "gologin";
import puppeteer from "puppeteer-core";

(async () => {
  const GL = new GoLogin({
    token:
      "xxx.eyJzdWIiOiI2MmQxNzdkZTQ3MmY2MGY4MWRhMDFmZTEiLCJ0eXBlIjoiZGV2Iiwiand0aWQiOiI2NjZmOTZhOGNhNmM5NjBhNGVjMTEzMjAifQ.mPY5hW283gjsJL23bT559KRwE2QokskZ4FiABseBfK8",
    profile_id: "xx",
  });

  const { _status, wsUrl } = await GL.start();
  const browser = await puppeteer.connect({
    browserWSEndpoint: wsUrl.toString(),
    ignoreHTTPSErrors: true,
  });

  const page = await browser.newPage();

  await page.goto("https://iphey.com/");
})();
image
crbon97 commented 2 months ago

Currently, there are several open issues with the API. We hope you can focus on resolving these issues rather than on marketing efforts for now.