I am trying to fund my test account with friendbot as stated in documentation. Below is the code I am using:

line 1// Keypair pair = KeyPair.random();

line 2// String friendbotUrl = String.format("https://horizon-testnet.stellar.org/friendbot/?addr=%s", pair.getAccountId()); line 3// InputStream response = new URL(friendbotUrl).openStream();

When I run this code I get following error at #line 3 every time. Can someone please help understand why below error is occurring ?


java.io.IOException: Server returned HTTP response code: 403 for URL: https://friendbot.stellar.org?addr=GA3MJGZ7NFD5C32UQCEZKZH4F6Z5BJWTFXSI2HC3DRHSRXK274LWQYBR

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.