Page MenuHomePhabricator

[token-server] Make rate limit error cashtab-friendly
ClosedPublic

Authored by bytesofman on Oct 2 2024, 16:56.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABCfd8d20a2b56f: [token-server] Make rate limit error cashtab-friendly
Summary

The default 'message' key in 'express-rate-limit' is not automagically picked up by Cashtab, leaving rate limited users who do not know how to check the dev console confused about the error.

Change the error so it matches what is sent by other error cases, and Cashtab catches it with a toast notification.

Test Plan

see screenshot

image.png (131×353 px, 17 KB)

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable