-
Notifications
You must be signed in to change notification settings - Fork 285
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
[2.6][T4] Occassional 503 and 422 errors when opening last page of /api/delegates/{username|address|publicKey}/blocks #2885
Comments
Thanks for opening this issue! A maintainer will review this in the next few days and explicitly select labels so you know what's going on. If no reviewer appears after a week, a reminder will be sent out. |
This issue or pull request needs further investigation. Please wait for further information, thank you. |
@Lemii
But I'm unable to reproduce 503 errors with your script. Any more clues? Edit: Nevermind I can reproduce it on mainnet. |
@Lemii could you check if this is still an issue? 422 means you send invalid data and 503 means the cache couldn't return data fast enough (usually only happens on low-spec machines). |
@faustbrian I've done some tests with 2.6 and it doesn't occur any more 👍 |
Thanks, will close this issue for now. If it starts to happen again just reopen it. |
This issue has been closed. If you wish to re-open it please provide additional information. |
When navigating to the last page of a
/api/delegates/{username|address|publicKey}/blocks
query, the API occassionally returns a503
or422
error.It mostly happens after a couple of dozen requests done in a short time.
Expected Behavior
The API should return the last page of results of the query.
Current Behavior
The API occassionally returns a
503
or422
error after processing a number of requests.Steps to Reproduce (for bugs)
I've created a simple script that demonstrates the issue, you can find it here: https://github.com/Lemii/first-forged-block
The script logs the date of the first forged block of each of the first 100 delegates. It usually starts out fine, but half way through the API starts returning errors.
You can tweak with the limiter settings to see how it affects the performance. However, even at 1 concurrent request with a high
minTime
, it will still return errors in the end.Context
See tool above.
Your Environment
W10
NodeJS v12.8.0
Latest
https://github.com/Lemii/first-forged-block
The text was updated successfully, but these errors were encountered: