Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support: Users not getting roles #129

Open
ravisoni6262 opened this issue Nov 28, 2022 · 2 comments
Open

Support: Users not getting roles #129

ravisoni6262 opened this issue Nov 28, 2022 · 2 comments

Comments

@ravisoni6262
Copy link
Member

Some members are not getting roles assigned. I turned on logging. I see a ton of 50035:Invalid Form Body errors.

@younes-dro
Copy link
Collaborator

@ravisoni6262

Examining the log file:

The 'recipient_id' argument is empty when sending the request to '/users/@me/channels' which gives the response error 50035:
{"code": 50035, "errors": {"recipient_id\": {"_errors": [{"code": "NUMBER_TYPE_COERCE", "message": "Value "" is not snowflake."}]} }, "message": "Invalid Form Body"}";

Something else very remarkable and is repeated often enough times :

"body\";s:92:\"{\n \"global\": false, \n \"message\": \"You are being rate limited.\", \n \"retry_after\": 8.188\n}\n\";s:8:\"response\";a:2:{s:4:\"code\";i:429;s:7:\"message\";s:17:\"Too Many Requests\";

According to the official discord doc :

All bots can make up to 50 requests per second to our API. This is independent of any individual rate limit on a route. If your bot gets big enough, based on its functionality, it may be impossible to stay below 50 requests per second during normal operations.

@ravisoni6262
Copy link
Member Author

ravisoni6262 commented Nov 30, 2022

@younes-dro

  • Can we re-produce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants