expresstechsoftware / connect-memberpress-discord-add-on

This add-on enables connecting your MemberPress enabled website to your discord server. Now you can add/remove MemberPress members directly to your discord server roles, assign roles according to your member levels, unassign roles when they expire, change role when they change membership.
GNU General Public License v2.0
4 stars 1 forks source link

Support: Users not getting roles #129

Open ravisoni6262 opened 1 year ago

ravisoni6262 commented 1 year ago

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

younes-dro commented 1 year ago

@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 commented 1 year ago

@younes-dro