Docs unclear, error when creating an account
See original GitHub issueI got an error from the very beginning. The code snippets in your “Create an Account” is very unclear.
Are they supposed to be inside a single or a separate files? (i pasted everything into one file) Are they run from the browser or via Terminal? (i run it using Node from Terminal)
Anyway, here’s the response that i get:
Unhandled rejection NotFoundError: [object Object]
SUCCESS! You have a new account :)
{ _links:
{ transaction:
{ href: 'https://horizon-testnet.stellar.org/transactions/4e3212bd9b1624fe501a0adc37126aafb785888fd45de3a52eb38cdbba1603d4' } },
hash: '4e3212bd9b1624fe501a0adc37126aafb785888fd45de3a52eb38cdbba1603d4',
ledger: 6182957,
envelope_xdr: 'AAAAAGXNhLrhGtltTwCpmqlarh7s1DB2hIkbP//jgzn4Fos/AAAAZAAACT0AAMVDAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAD21ktzSjDM/q/1kSQANbZyD7gQDKEA0aSgM90zbk/uwAAAAXSHboAAAAAAAAAAAB+BaLPwAAAEBM2wZbgLDXe7NdKTGvHHiRGhnNsQ5F2d7TJK5scwTo69OMGWxR0K6K2kXnmWgRxLgMLaLLRRnxzIlxcT1907wO',
result_xdr: 'AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=',
result_meta_xdr: 'AAAAAAAAAAEAAAADAAAAAABeWC0AAAAAAAAAAA9tZLc0owzP6v9ZEkADW2cg+4EAyhANGkoDPdM25P7sAAAAF0h26AAAXlgtAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAwBeWC0AAAAAAAAAAGXNhLrhGtltTwCpmqlarh7s1DB2hIkbP//jgzn4Fos/AAJ6s4+6ejQAAAk9AADFQwAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAQBeWC0AAAAAAAAAAGXNhLrhGtltTwCpmqlarh7s1DB2hIkbP//jgzn4Fos/AAJ6nEdDkjQAAAk9AADFQwAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAA' }
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (3 by maintainers)
Top Results From Across the Web
Security update for Google Drive
On your computer, go to drive.google.com. At the top, type: is:security_update_applied or is:security_update_removed in the search bar. Make security update ...
Read more >Error Messages: Examples, Best Practices & Common Mistakes
Useful error messages can keep users on your site and increase conversions. See examples and learn the best practices.
Read more >Troubleshoot uploading your state-issued ID - Login.gov
... try the steps below if you're still getting an error while uploading your state-issued identification. You can make 10 attempts to upload...
Read more >Troubleshooting common eDiscovery issues - Office 365
An eDiscovery search fails and returns a "recipient not found" error message. This error might occur if the user object cannot be found...
Read more >Create or update your Adobe account
Learn how to create an Adobe account or change the email address ... If you are unclear about which email address is associated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rizkysyazuli - Agree, the docs in the page aren’t super clear. You can put all of them into a single file like you have seem to done. There is one caveat though.
The second and third snippets are both asynchronous. The second snippet makes an API call to fund an account (and activate it), and only after that is successful, should you be executing the third snippet to get the account details.
In your case, since you’ve pasted all the snippets as they are, in order, your third snippet is executed even before the api call in the second snippet returns. So, it is not able to find the account details you’re looking for and that fails with a NotFoundError. Since this is also a promise, and it doesn’t have the catch block you see the error
Unhandled rejection NotFoundError: [object Object]
.This is the correct way to use the snippets from the documentation:
Is that a friendbot for testnet?