Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[API TROUBLESHOOT] Range Error

1536084745

Edited 1536085023
Chibbin Grove
Pro
Marketplace Creator
Hey, I am wondering if someone can help me find out more information on the following error. RangeError: Maximum call stack size exceeded RangeError: Maximum call stack size exceeded     at inlinefinalcallback (eval at <anonymous> (/home/node/d20-api-server/api.js:155:1), <anonymous>:1095:6)     at _findInlineRolls (eval at <anonymous> (/home/node/d20-api-server/api.js:155:1), <anonymous>:1005:6)     at inlinefinalcallback (eval at <anonymous> (/home/node/d20-api-server/api.js:155:1), <anonymous>:1102:7)     at _findInlineRolls (eval at <anonymous> (/home/node/d20-api-server/api.js:155:1), <anonymous>:1005:6)     at processInlineRolls (eval at <anonymous> (/home/node/d20-api-server/api.js:155:1), <anonymous>:1110:5)     at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:155:1), <anonymous>:878:7)     at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:186:9)     at processMultiOps (eval at <anonymous> (/home/node/d20-api-server/api.js:155:1), <anonymous>:798:7)     at Object.d20.textchat.doChatInput (eval at <anonymous> (/home/node/d20-api-server/api.js:155:1), <anonymous>:1122:4)     at sendChat (/home/node/d20-api-server/api.js:1788:16) My API has stopped working and I cannot find anything online about it. I have tried turning each of the API I run off to try and find out which one is causing the error, however this did not reveal any relevant data. My hopes are one of you bright lot might be able to understand this better than little old me! Cheers in Advance Chibbin Grove UPDATE - I have been informed by a fellow DM they are also having problems with their API. Could this be a roll20 server problem rather than the API itself?
1536090646
The Aaron
Pro
API Scripter
It might be, but this looks more like you have a handler for on('chat:message',...) that is sending a chat message causing infinite recursion?
1536090660
The Aaron
Pro
API Scripter
Can you paste the script you're using?
1536097073

Edited 1536104881
GM Michael
API Scripter
I've had that happen recently when setting the gmnotes in Cash Master; the problem was annoying sporadic.  It was easily fixed by spinning off a thread through setTimeout.
1536131851

Edited 1536131875
Chibbin Grove
Pro
Marketplace Creator
I woke up this morning and everything seems to be working now. The same goes for my buddy who had problems also.  Ty for the messages here and in Private messages to help!