question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RangeError: Maximum call stack size exceeded

See original GitHub issue

This error happens when I am trying to do role requirements.

Here is my role requirement code

else if(yesreq){
              await bot.giveawaysManager.start(message.channel, {
                time: ms(giveawayDuration),
                prize: giveawayPrize,
                winnerCount: giveawayWinners,
                     extraData: {
        Role: yesreq
        },
                   
   
            });
}

My event:

manager.on('giveawayReactionAdded', (giveaway, member, reaction) => {
  let hey = giveaway.extraData.Role.slice(3, -1)
    if (!member.roles.cache.some(hey)) {
         reaction.users.remove(member.user);
             const hostembed = new Discord.MessageEmbed()
    .setTitle(`:x:`)
    .setColor('RED')
   member.send(hostembed).
    })
    }
});

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:34 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
WideKan1commented, Apr 1, 2021

Thank you, it is working perfectly now! I am really sorry I wasted your time to help me, it’s my fault, I should’ve looked carefully.

0reactions
WideKan1commented, Apr 1, 2021

Wow, how could I miss that? Thank you! It works in local host, I will try using replit database now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >
JavaScript Error: Maximum Call Stack Size Exceeded
If you see the “Maximum Call Stack Size Exceeded” error, there's likely a problem with a recursive function within your JavaScript code.
Read more >
Uncaught RangeError: Maximum call ... - Net-Informations.Com
This error is almost always means you have a problem with recursion in JavaScript code, as there isn't any other way in JavaScript...
Read more >
RangeError: Maximum call stack size exceeded - Educative.io
The most common source for this error is infinite recursion. You must have a recursive function in your code whose base case is...
Read more >
ERROR RangeError: Maximum call stack size exceeded - GoJS
When user copy wireframe from one column and paste it to another column. The wireframe from source column (from where user copied wireframe)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found