XRPLF / xrpl-py

A Python library to interact with the XRP Ledger (XRPL) blockchain
ISC License
144 stars 83 forks source link

Error network connetion #621

Closed Hossein-Teimouri closed 11 months ago

Hossein-Teimouri commented 1 year ago

program I wrote

import xrpl
client = xrpl.clients.JsonRpcClient("http://127.0.0.1:5005")
address = input("address: ")
acc = xrpl.account.does_account_exist(address, client)
print(acc)

output

address: rEgBsK556APc1wDea3SBSWqHXEimBxxbew
Traceback (most recent call last):
  File "test.py", line 7, in <module>
    acc = xrpl.account.does_account_exist(address, client)
  File "/usr/local/lib/python3.8/dist-packages/xrpl/account/main.py", line 30, in does_account_exist
    return asyncio.run(main.does_account_exist(address, client, ledger_index))
  File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.8/dist-packages/xrpl/asyncio/account/main.py", line 31, in does_account_exist
    await get_account_root(address, client, ledger_index=ledger_index)
  File "/usr/local/lib/python3.8/dist-packages/xrpl/asyncio/account/main.py", line 117, in get_account_root
    raise XRPLRequestFailureException(account_info.result)
xrpl.asyncio.clients.exceptions.XRPLRequestFailureException: Request failed, noNetwork: InsufficientNetworkMode
mvadari commented 1 year ago

It sounds like your node isn't synced to the network yet. What happens when you run server_info? https://xrpl.org/diagnosing-problems.html

JST5000 commented 11 months ago

@Hossein-Teimouri checking in - were you able to see what happens when you run server_info?

JST5000 commented 11 months ago

Closing this for now as inactive - please re-open if you find steps to reproduce.