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