# \[puppeteer-page-waitFor\] RangeError: Maximum call stack size exceeded

**URL:** <https://discourse.nodered.org/t/puppeteer-page-waitfor-rangeerror-maximum-call-stack-size-exceeded/95507>\
**Category:** General\
**Created:** [19 February 2025 09:14 UTC](https://discourse.nodered.org/t/puppeteer-page-waitfor-rangeerror-maximum-call-stack-size-exceeded/95507 "2025-02-19T09:14:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aymenait](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@aymenait](https://discourse.nodered.org/u/aymenait)\
**Post date:** [19 February 2025 09:14 UTC](https://discourse.nodered.org/t/puppeteer-page-waitfor-rangeerror-maximum-call-stack-size-exceeded/95507/1 "2025-02-19T09:14:38Z")

</div>

i have the following flow in node-red:

 ![Screenshot 2025-02-19 100819](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/4/a480a77ac54f24c87119f46d3e86caac42a5c7a3.png)

the problem is the "puppeter wait for" node when it output just once, there is no problem but when i add a second one to trigger the "cordon" node then that throws this exception:

```auto
19 Feb 10:04:57 - [error] [puppeteer-page-waitFor:wait] RangeError: Maximum call stack size exceeded
19 Feb 10:04:57 - [red] Uncaught Exception:
19 Feb 10:04:57 - [error] RangeError: Maximum call stack size exceeded
    at baseClone (C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:841:19)
    at C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:897:30
    at arrayEach (C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:140:9)
    at baseClone (C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:891:3)
    at C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:897:30
    at arrayEach (C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:140:9)
    at baseClone (C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:891:3)
    at C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:897:30
    at arrayEach (C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:140:9)
    at baseClone (C:\Users\ACER\AppData\Roaming\npm\node_modules\node-red\node_modules\lodash.clonedeep\index.js:891:3)

```

what im trying to achieve is scrape a web page for a machine in my work place.  
i tried adding another "puppeter wait for" node then link the two to the same url node but then this error get navigated the "url" node.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 May 2025 09:15 UTC](https://discourse.nodered.org/t/puppeteer-page-waitfor-rangeerror-maximum-call-stack-size-exceeded/95507/2 "2025-05-20T09:15:15Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
