web3.storage icon indicating copy to clipboard operation
web3.storage copied to clipboard

Improve error message when pinning when api is read-only

Open olizilla opened this issue 2 years ago • 1 comments

We just drop a 503 service unavailable on the user. Can we give them a "API is read-only for maintenance. See https://status.web3.storage for details"

$ ipfs pin remote add --service=web3stage --name="ayy2.jpg" bafybeidluj5ub7okodgg5v6l4x3nytpivvcouuxgzuioa6vodg3xt2uqle                                                   
Error: reason: "", details: "": 503 Service Unavailable

When we try to create a new api token during a read-only period we get a better error like

{"code":"ERROR_MAINTENANCE","message":"API undergoing maintenance, check https://status.web3.storage/ for more info"}

olizilla avatar May 13 '22 11:05 olizilla

Same issue when trying to list pins during a full "no reads or writes" maintenance mode

$ ipfs pin remote ls --service=web3stage                                                                                                                                 
Error: reason: "", details: "": 503 Service Unavailable

olizilla avatar May 13 '22 11:05 olizilla

I believe this is resolved by #1710 I cannot recreate the issue locally now. Please let me know if this is still occuring @olizilla

joshghent avatar Aug 12 '22 14:08 joshghent

@flea89 to try to reproduce this one and close if not.

flea89 avatar Sep 20 '22 09:09 flea89

Closing ticket as issue couldn't be reproduced locally after fix.

mbommerez avatar Sep 21 '22 10:09 mbommerez