Surfacing faucet error in the UI
It seems to always say "Failed to fetch" 😢
I think this title should be changed because the faucet is broken for any amount. the Console is showing a CORS error.
https://user-images.githubusercontent.com/33360391/230711909-415fd7d3-6986-4abd-971c-e5420277c0df.mp4

Workaround: Use the Hiro Desktop wallet for testnet, that still has a faucet button that works (for small amounts). https://github.com/hirosystems/desktop-wallet/releases/tag/v4.8.0
@markmhx @314159265359879 Thanks for the heads up! I just tested a fix and it seems to be working for me now. Can you try again?
We tested it and it's working, Thanks @CharlieC3. I'll close the issue
I just tried again and the request for regular amounts worked but then my subsequent request for Stacking amounts failed:
@markmhx A 429 status code means you're being rate-limited by the faucet. You can make a faucet request once every minute. So if you wait long enough, you should be able to make another request. I think this is working as intended.
Ideally if the Explorer received a 429 on this page, it would be a better UX if it could display a message saying you're being rate-limited, and to wait a minute before sending another request.
cc @He1DAr
You're right, that was the issue – I tried for Stacking amounts again today and it worked 🥳
If the API is giving us the correct status code, then we can improve the UX. Thanks @CharlieC3 for the suggestion
@shamim-io would this be something you are willing to take?
@andresgalante I think this section is visible only in testnet but not in mainnet.
When I am viewing it from the mainnet I can't reproduce the section. The screenshot is as under.
If I am right. Can you please provide me a valid URL to create a test network ? Thanks!
@shamim-io That's right, the faucet only works on testnet since it proves "free" testnet STX 😄
Awesome! Can you please provide me an URL to create a test network? @andresgalante
@shamim-io you just need to select the testnet from the menu