I did open an issue in GitHub too but ...taking it from the examples the friendbot stopped working around 1 week ago
var request = require('request');
request.get({
url: 'https://horizon-testnet.stellar.org/friendbot',
qs: { addr: pair.publicKey() },
json: true
}, function(error, response, body) {
if (error || response.statusCode !== 200) {
console.error('ERROR!', error || body);
}
else {
console.log('SUCCESS! You have a new account ?\n', body);
}
});
from the example at https://www.stellar.org/developers/guides/get-started/create-account.html still fails. I have noticed that in stellar lab Friendbot works fine now so I am wondering if the api/example changed recently?
Error
title: 'Transaction Failed',
status: 400,
detail: 'The transaction failed when submitted to the stellar network. The extras.result_codes field on this response contains further details. Descriptions of each code can be found at: https://www.stellar.org/developers/learn/concepts/list-of-operations.html',
extras:
{ envelope_xdr: 'AAAAABB90WssODNIgi6BHveqzxTRmIpvAFRyVNM+Hm2GVuCcAAAAZABiwhcAAIcyAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAALMt7Y8euYoMuziWEiGDzyf9HSnuC7WFJk4glGUbftXwAAAAXSHboAAAAAAAAAAABhlbgnAAAAED69gVZaoZyDWLq2XhN0kTs6/nTVzUfhjV2lgXMoMwZZxRzMshXdgZHDPKaT8AVXyXr9zv5s4CNtoMMjoqo/ekK',
result_codes: { transaction: 'tx_failed', operations: [Array] },
result_xdr: 'AAAAAAAAAGT/////AAAAAQAAAAAAAAAA/////AAAAAA=' } }
Doctors-MacBook-Pro:stellarjs doctorstrange$
am I doing something wrong? I noticed that now friendbot works on the lab so I suspect something changed on the SDK but I am not sure. Thanks in advance for your help.