Giter VIP home page Giter VIP logo

arweave-bundles's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arweave-bundles's Issues

Expected data to be a string, Uint8Array or ArrayBuffer

When I tried to submit an ANS-102 bundle I would receive the following error:

Expected data to be a string, Uint8Array or ArrayBuffer

The following is how I tried to submit the transactions.

const data = await ArData.bundleData(bundles);

let tx = await arweave.createTransaction({ data }, key);

tx.addTag('Bundle-Type', 'ANS-102');
tx.addTag('Bundle-Format', 'json');
tx.addTag('Bundle-Version', '1.0.0');
tx.addTag('Content-Type', 'application/json');

await arweave.transactions.sign(tx, key);
await arweave.transactions.post(tx);

Keep in mind that when I console.log the ANS-102 transaction. It would output a JSON object:

{
  items: [
     ...
  ]
}

The data does verify as correct... However, I believe this is an issue with the Arweave core library not supporting the ANS-102 transaction format.

[CHORE] Update Axios >=0.21.1

Description

  • Axios outdated and has a security vulnerability

Debug Log as shown here:

│ high          │ Server-Side Request Forgery                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ axios                                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in>=0.21.1                                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ arweave-bundles                                              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ arweave-bundles > arweave > axios                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1594                        │

Solution

Can update the package.json and yarn.lock file with.

yarn add axios

And then republish as a new npm version.

NPM Package

There is no NPM package for this right now.
Would be nice to publish it to npmjs.

An alternative for now is:

npm install https://github.com/ArweaveTeam/arweave-data

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.