Giter VIP home page Giter VIP logo

Occasionally, the connection will be maintained when /api/v0/add?pin=true&to-files=/xxxxx is called. After forced disconnection, the file content can be found based on the CID, but there is no file in the specified path(MFS). about kubo HOT 4 OPEN

daxionga avatar daxionga commented on June 20, 2024
Occasionally, the connection will be maintained when /api/v0/add?pin=true&to-files=/xxxxx is called. After forced disconnection, the file content can be found based on the CID, but there is no file in the specified path(MFS).

from kubo.

Comments (4)

Jorropo avatar Jorropo commented on June 20, 2024

Does curl ever return ? If curl is left hanging we probably don't have commited anything in the database.

from kubo.

daxionga avatar daxionga commented on June 20, 2024

Does curl ever return ? If curl is left hanging we probably don't have commited anything in the database.

Not only curl, but also java's okhttp SDK. Others may also have this situation, but I didn't test it at the time. This situation only happens occasionally, and it doesn't always happen. Under normal circumstances, curl will not keep hanging.You can use your own IPFS node to test it with curl
image

from kubo.

Jorropo avatar Jorropo commented on June 20, 2024

I can't copy paste from screenshots can you put text please ?

from kubo.

daxionga avatar daxionga commented on June 20, 2024

I can't copy paste from screenshots can you put text please ?

# Create MFS path
curl 'http://xxx.xxx.xxx.xxx:5001/api/v0/files/mkdir?arg=/test0915 -X POST  -H 'content-type:application/json'
# create local file 
echo  'adsafdasfndjfnjksfbkewjbnfkejwnf' > test
# upload
curl 'http://xxx.xxx.xxx.xxx:5001/api/v0/add?pin=true&to-files=/test0915' -X POST -F 'file=@"test";filename="test5"
# create another local file 
echo  'adsafdasfndjfnjksfbkewjbnfkejwnf' > test01
# upload
curl 'http://xxx.xxx.xxx.xxx:5001/api/v0/add?pin=true&to-files=/test0915' -X POST -F 'file=@"test01";filename="test501"
# and then sometime upload will be hung

from kubo.

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.