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.

[Bug]: Failed to create role

See original GitHub issue

Check The Docs

  • I double checked the docs and couldn’t find any useful information.

Verify Issue Source

  • I verified the issue was caused by Discord.Net.

Check your intents

  • I double checked that I have the required intents.

Description

Not throwing an exception or continuing to execute any code after failing to create role because of ratelimit, even when retry mode is set to fail always in the client config.

request: https://unhittable.nebulamods.ca/3E7VHO24 response: https://unhittable.nebulamods.ca/29TQ8YG8

Version

3.6.1

Working Version

No response

Logs

n/a

Sample

                try
                {
                    var broken = await Context.Guild.CreateRoleAsync("broken ratelimit", null, null, false, null);
                    if (broken is null)
                        continue;
                }
                catch(Exception e)
                {
                    Console.WriteLine(e.Message);
                }

Packages

Discord.Net.Labs

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
wnelson03commented, May 5, 2022

@Rozen4334 he’s using stable and still having issues

0reactions
csmircommented, May 15, 2022

I can’t reproduce this. I have attempted to create 100 roles in the same guild in a for-loop, with no issues at all.

            for (int i = 0; i < 100; i++)
            {
                try
                {
                    var broken = await Context.Guild.CreateRoleAsync("broken ratelimit", null, null, false);
                    if (broken is null)
                        continue;
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message);
                }
            }

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not create role AWSCodePipelineServiceRole
Try to create the IAM role with different name (e.g. AWSCodePipelineServiceRole2020). Give the pipeline a different name and keep the role name ...
Read more >
Solved: Create Role Error
Solved: I'm trying to Create Role using GP tool and encounter error. [Operation succeeded with warning messages written to error log file] ...
Read more >
Unable to create Role with aws iam create-role
I am getting the following error as below when command is ran: $ aws iam create-role --role-name AmazonEKSNodeRole --assume-role-policy-document ...
Read more >
Failed to create a role with admin permissions · Issue #9874
Describe the issue: An error occurred while creating an internal role with admin permissions. ... Navigate to Manage Tab > Roles . Click...
Read more >
AWS - Troubleshooting
AWS - Troubleshooting¶ · Failed to create role: not authorized to perform: iam:CreateRole¶ · Unable to create user: not authorized to perform: iam:CreateUser¶....
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