# "Too many RPC requests" when trying to refresh the root object

**URL:** <https://forum.genieacs.com/t/too-many-rpc-requests-when-trying-to-refresh-the-root-object/199>\
**Category:** Uncategorized\
**Created:** [July 28, 2019, 7:30am UTC](https://forum.genieacs.com/t/too-many-rpc-requests-when-trying-to-refresh-the-root-object/199 "2019-07-28T07:30:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HLeithner](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@HLeithner](https://forum.genieacs.com/u/HLeithner)\
**Post date:** [July 28, 2019, 7:30am UTC](https://forum.genieacs.com/t/too-many-rpc-requests-when-trying-to-refresh-the-root-object/199/1 "2019-07-28T07:30:46Z")

</div>

Trying to invoke a refreshObject with no objectName ends in the Error message in the subject.

Device is a Gaoke FG7002N

Any idea how to solve this issue?

---

<div class="post-metadata">

**Author:** ![miami1983](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/miami1983/32/49_2.png) [@miami1983](https://forum.genieacs.com/u/miami1983)\
**Post date:** [October 14, 2019, 9:04am UTC](https://forum.genieacs.com/t/too-many-rpc-requests-when-trying-to-refresh-the-root-object/199/2 "2019-10-14T09:04:13Z")

</div>

i have same issue

and need to know the suitable provisioning code need to set

---

<div class="post-metadata">

**Author:** ![tonic12](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@tonic12](https://forum.genieacs.com/u/tonic12)\
**Post date:** [October 22, 2019, 7:56am UTC](https://forum.genieacs.com/t/too-many-rpc-requests-when-trying-to-refresh-the-root-object/199/3 "2019-10-22T07:56:03Z")

</div>

i have that problem too.  
i think it’s because some CPE is weak and more than 255 requests can break CPE.

you can fix it in file `lib/session.ts`, find block:

> if (sessionContext.rpcCount \>= 255) {  
> return {  
> fault: {  
> code: “too\_many\_rpcs”,  
> message: “Too many RPC requests”,  
> timestamp: sessionContext.timestamp  
> },  
> rpcId: null,  
> rpc: null  
> };  
> }

and change 255 to 511 or 1023, then tell us whats happend.))))

---

<div class="post-metadata">

**Author:** ![breakiboy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/breakiboy/32/605_2.png) [@breakiboy](https://forum.genieacs.com/u/breakiboy)\
**Post date:** [March 22, 2020, 9:41am UTC](https://forum.genieacs.com/t/too-many-rpc-requests-when-trying-to-refresh-the-root-object/199/4 "2020-03-22T09:41:11Z")

</div>

i have same issue, can anyone help me?

---

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [March 28, 2020, 3:46am UTC](https://forum.genieacs.com/t/too-many-rpc-requests-when-trying-to-refresh-the-root-object/199/5 "2020-03-28T03:46:15Z")

</div>

> [@tonic12](#):
>
> lib/

hello  
where is that file? there is no session.ts. How can i put in the current install 1.2 version?

---

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [April 2, 2020, 3:00pm UTC](https://forum.genieacs.com/t/too-many-rpc-requests-when-trying-to-refresh-the-root-object/199/6 "2020-04-02T15:00:45Z")

</div>

Seem to need to add cwmp.maxCommitIterations on config tab with a some value like “128” or another (i add a bigger one).  
Also you need to clone the last version and modify the file session.ts, then do “npm run build” , move the “dist” content to /opt/genieacs, and the on the /opt/genieacs do the “npm install --unsafe-perm”  
Seems to first at all , need to also uninstall the current version with “sudo npm uninstall --unsafe-perm genieacs” under current installed folder. I didnt lost the parameters i think that is under mongoDB…

---

<div class="post-metadata">

**Author:** ![Alex188](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@Alex188](https://forum.genieacs.com/u/Alex188)\
**Post date:** [September 11, 2020, 3:27am UTC](https://forum.genieacs.com/t/too-many-rpc-requests-when-trying-to-refresh-the-root-object/199/7 "2020-09-11T03:27:26Z")

</div>

The file is session.js which is in /genieacs/lib/ folder. I have changed the value from 255 to 1023 and it could fix “too many RPC requests” problem.
