Giter Site home page Giter Site logo

Comments (2)

larrysalibra avatar larrysalibra commented on July 28, 2024

I tried to run the following to persist the profile data:

blockstore-cli update theblockchain.id "$(cat ~/theblockchain.json)" "$(cat ~/theblockchain.key)" 91cb40ea52ded01b3de02a9fb385231e815f0c955c7735a404b00219005b9792
[ERROR] [storage:314] (3484) timed out
Traceback (most recent call last):
  File "/srv/blockstore-venv/local/lib/python2.7/site-packages/blockstore_client/storage.py", line 312, in get_immutable_data
    data = handler.get_immutable_handler( data_key )
  File "/srv/blockstore-venv/local/lib/python2.7/site-packages/blockstore_client/drivers/dht.py", line 151, in get_immutable_handler
    return dht_get_key(key)
  File "/srv/blockstore-venv/local/lib/python2.7/site-packages/blockstore_client/drivers/dht.py", line 101, in dht_get_key
    ret = dht_server.get( data_key )
  File "/srv/blockstore-venv/local/lib/python2.7/site-packages/basicrpc/basicrpc.py", line 46, in default
    return self.request()
  File "/srv/blockstore-venv/local/lib/python2.7/site-packages/basicrpc/basicrpc.py", line 82, in request
    c = self.sock.recv(1)
timeout: timed out
[ERROR] [client:284] (3484) Failed to load user record '312afaf6f3cd6c45109b3fcccf200ef65b0d17eb'
{
    "error": "User data could not be loaded from storage"
}

Temporarily commenting out lines 843 to 849
https://github.com/blockstack/blockstore-client/blob/master/blockstore_client/client.py#L843
and running the command again successfully persisted the user data in the dht.

blockstore-cli update theblockchain.id "$(cat ~/theblockchain.json)" "$(cat ~/theblockchain.key)" 91cb40ea52ded01b3de02a9fb385231e815f0c955c7735a404b00219005b9792
{
    "status": true,
    "transaction_hash": "91cb40ea52ded01b3de02a9fb385231e815f0c955c7735a404b00219005b9792",
    "value_hash": "312afaf6f3cd6c45109b3fcccf200ef65b0d17eb"
}

I started up another dht node on another machine and confirmed the data is accessible.

from stacks.js.

muneeb-ali avatar muneeb-ali commented on July 28, 2024

This has been resolved in latest version. Please checkout the latest version of the client and cli!

from stacks.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.