HomePhabricator

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

Description

[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)

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D16841

Details

Provenance
bytesofmanAuthored on Oct 2 2024, 16:54
bytesofmanPushed on Oct 3 2024, 04:59
Reviewer
Restricted Project
Differential Revision
D16841: [token-server] Make rate limit error cashtab-friendly
Parents
rABC66b396108b91: [Cashtab] Add an info log on the NFT listings page
Branches
Unknown
Tags
Unknown