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

Cannot read properties of undefined (reading 'get') #3

Closed
sequencerr opened this issue Feb 2, 2024 · 5 comments
Closed

Cannot read properties of undefined (reading 'get') #3

sequencerr opened this issue Feb 2, 2024 · 5 comments

Comments

@sequencerr
Copy link

sequencerr commented Feb 2, 2024

Cuadrix#103

C:\****\node_modules\@lem0-packages\puppeteer-page-proxy\src\core\proxy.js:48
    const listeners = page.eventsMap.get(eventName);
                                     ^

TypeError: Cannot read properties of undefined (reading 'get')
    at removeRequestListener (C:\****\node_modules\@lem0-packages\puppeteer-page-proxy\src\core\proxy.js:48:38)
@alvinlys
Copy link

alvinlys commented Feb 9, 2024

yes, same goes to me with puppeteer-core v21.11.0

Repository owner deleted a comment from sequencerr Feb 9, 2024
@LeM0-Dev
Copy link
Owner

LeM0-Dev commented Feb 9, 2024

Cuadrix#103

C:\****\node_modules\@lem0-packages\puppeteer-page-proxy\src\core\proxy.js:48

    const listeners = page.eventsMap.get(eventName);

                                     ^



TypeError: Cannot read properties of undefined (reading 'get')

    at removeRequestListener (C:\****\node_modules\@lem0-packages\puppeteer-page-proxy\src\core\proxy.js:48:38)

@sequencerr unless you provide code to replicate the issue, then it wont be fixed. please provide the code that caused the issue, otherwise I cant help you

@sequencerr
Copy link
Author

@LeM0-Dev Thank you for rethinking your language. I don't need help, I just want to help you for the sake of your fork.

The repro code as primitive as

import puppeteer from 'puppeteer';
import useProxy from '@lem0-packages/puppeteer-page-proxy';
const browser = await puppeteer.launch();
const page = await browser.newPage();
await useProxy(page, 'http://127.0.0.1:80');

@LeM0-Dev
Copy link
Owner

@LeM0-Dev Thank you for rethinking your language. I don't need help, I just want to help you for the sake of your fork.

The repro code as primitive as

import puppeteer from 'puppeteer';
import useProxy from '@lem0-packages/puppeteer-page-proxy';
const browser = await puppeteer.launch();
const page = await browser.newPage();
await useProxy(page, 'http://127.0.0.1:80');

Alright thanks. Will check

@LeM0-Dev
Copy link
Owner

Should be fixed now!

Repository owner deleted a comment from senzacionale Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants