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

Average latency somehow turns negative in RequestHandler #365

Closed
SomeoneCares11 opened this issue Feb 27, 2018 · 0 comments
Closed

Average latency somehow turns negative in RequestHandler #365

SomeoneCares11 opened this issue Feb 27, 2018 · 0 comments
Labels

Comments

@SomeoneCares11
Copy link

SomeoneCares11 commented Feb 27, 2018

Hi,

i have spoke with abal about this issue, i produced this issue on 2 servers

Server 1:

Host: OVH
Os: Debian 9.3 Stretch (stable)
Node v8.9.4

Server 2 :

Host: OVH
Os: Windows 2012 R2
Node v7.5.0

How to produce ?

1- Create simple bot with ping pong
2- Spam the bot with (ping) from 3 accounts, until you get ratelimit and negative avg ping

after that you'll get many unexpected ratelimited, and may discord ban you if you hit global.

Unexpected 429 (╯°□°)╯︵ ┻━┻: {
  "global": false, 
  "message": "You are being rate limited.", 
  "retry_after": 185
}

pong 1519734457546 /channels/362422589131456513/messages 429: 115ms (-5ms avg) | 0/5 left | Reset 1519734457731 (185ms left)
Unexpected 429 (╯°□°)╯︵ ┻━┻: {
  "global": false, 
  "message": "You are being rate limited.", 
  "retry_after": 385
}

pong 1519734622583 /channels/362422589131456513/messages 429: 120ms (-10ms avg) | 0/5 left | Reset 1519734622968 (385ms left)
@abalabahaha abalabahaha changed the title avg ping negative somehow then get many unexpected ratelimited Average latency somehow turns negative in RequestHandler Feb 28, 2018
nandub added a commit to nandub/eris that referenced this issue Mar 14, 2018
* upstream/master:
  0.8.5
  Add option to manually offset ratelimiter
  Add Eris.VERSION (abalabahaha#364)
  Avoid negative average latency (fix abalabahaha#365)
  Code/docs tidying
  Check for missing msg.author in CommandClient (fix abalabahaha#362)
  Fix voice receive stream cleanup (fix abalabahaha#359)
  Fix Spotify presence update caching (abalabahaha#363)
  Update editStatus docs (abalabahaha#361)
  Expose userID for CommandClient reaction buttons
  Expose activity and application properties in Message
  Fix user caching for ban events
nandub added a commit to nandub/eris that referenced this issue Mar 14, 2018
* upstream/master:
  0.8.5
  Add option to manually offset ratelimiter
  Add Eris.VERSION (abalabahaha#364)
  Avoid negative average latency (fix abalabahaha#365)
  Code/docs tidying
  Check for missing msg.author in CommandClient (fix abalabahaha#362)
  Fix voice receive stream cleanup (fix abalabahaha#359)
  Fix Spotify presence update caching (abalabahaha#363)
  Update editStatus docs (abalabahaha#361)
  Expose userID for CommandClient reaction buttons
  Expose activity and application properties in Message
  Fix user caching for ban events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants