Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: IPFS Wrap #22

Open
2 of 3 tasks
rihp opened this issue Jul 11, 2023 · 2 comments
Open
2 of 3 tasks

Feat: IPFS Wrap #22

rihp opened this issue Jul 11, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@rihp
Copy link
Collaborator

rihp commented Jul 11, 2023

Currently this wrap is not running on the agent due to an unidentified issues

Debugging:

  • Giving it an infura connection endpoint with its api key and secret
  • setting up a local ipfs node with docker
  • setting connection empty and setting it up manually like with the ethereum wrap connection

Try printing the contents of this wrap.info file with the hash QmNkwdHYHqCoepQPmaJvsRSN525a3WBAZMAKpdtsF4VtWG

@rihp
Copy link
Collaborator Author

rihp commented Jul 11, 2023

I'll compile errors here

About to execute the following function

InvokeWrap ({
  "uri": "embed/[email protected]",
  "method": "addFile",
  "args": {
    "data": {
      "name": "file",
      "data": "2SAFJYN89Ktpmzf02HicfZYhLhc3ad811ea49264be816c98aa8cfe82ec3"
    },
    "ipfsProvider": "https://ipfs.infura.io:5001"
  }
})

(Y/N)

The last attempt was unsuccessful. This is the error message: WrapError: __wrap_abort: Property must be of type 'bytes'. Found 'string'.
  Context: Deserializing module-type: addFile Args
    at data: ArrayBuffer >> type found, reading property
      at data: unknown >> searching for property type
        at data: Types.FileEntry >> type found, reading property
          at data: unknown >> searching for property type

@cbrzn
Copy link

cbrzn commented Jul 11, 2023

this means that the data attribute is expected to be Bytes and not string; check the type of AddFile in the .graphql; there's also an example of how to get a file and add it

it actually would be pretty cool if the ai is smart enough to notice that given that error it needs to modify things accordingly

@rihp rihp mentioned this issue Jul 12, 2023
12 tasks
@rihp rihp added the enhancement New feature or request label Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants