application-research / estuary

A custom IPFS/Filecoin node that makes it easy to pin IPFS content and make Filecoin deals.
https://docs.estuary.tech
Other
240 stars 66 forks source link

unable to make filecoin deals #977

Closed ProgramCpp closed 1 year ago

ProgramCpp commented 1 year ago

Describe the bug pinning a cid returns internal server error

 500 Internal Server Error (Internal Server Error: cid too short
ex: bafybeiackdoiqj3o2hvgr4joxcpqe3dtt4nttrfcsopb7dzv65khy2vodm

To Reproduce Steps to reproduce the behavior:

  1. call API POST /content/add-ipfs
    {
    "root" : "cid",
    "name": "file-name"
    }

Expected behavior no error must be returned. pinning must be successful

Actual behavior returns 500 internal error

Additional context

ProgramCpp commented 1 year ago

fixed by modifying the request payload to,

{
    "cid" : "cid",
    "name": "file-name"
}