Petar Markov

Results 5 comments of Petar Markov

> How many servers do you have on your panel? Keep in mind that `#fetchAll` is recursive and will attempt to cycle through every page of servers available. I've only...

Some additional info Attempted to fix it, but it's not the correct fix, it's an issue with the conversion of the object to JSON. ``` import { type NextApiRequest, type...

.toJSON() is also affected. `console.log(server)` works but `console.log(server.toJSON());` doesn't

``` const pteroSrv = await ctx.pteroAdmin.servers.fetch(srv.id); return { ...server } ``` Causes the following error ``` Converting circular structure to JSON --> starting at object with constructor 'PteroApp' | property...

https://github.com/PteroPackages/PteroJS/blob/0823869d7064ca4f15a2611e4aa977950fa204b9/src/application/NestManager.ts#L102