everFinance / goar

Arweave http client and wallet implemented in go, Arweave SDK
Apache License 2.0
142 stars 45 forks source link

send to bundler request failed; http code: 402 #28

Closed samsends closed 2 years ago

samsends commented 2 years ago

Hello, I am trying to use the bundler to upload files but every time I attempt to submit a bundle I receive this error:

send to bundler request failed; http code: 402

this is my flow for finalizing:


    _, err := bm.Wallet.Client.BatchSendItemToBundler(bm.BundleItems)
    if err != nil {
        return err
    }

    bd, err := utils.NewBundle(bm.BundleItems...)
    if err != nil {
        return err
    }

    _, err = bm.Wallet.SendBundleTx(bd.BundleBinary, nil)
    if err != nil {
        return err
    }
zyjblockchain commented 2 years ago

v1.3.2 has fix bundler tx. and the readme also add how to use bundler service https://github.com/everFinance/goar/tree/v1.3.2#notice

zyjblockchain commented 2 years ago

There are two reasons why goar cannot push bundle item to bundler servise

  1. Bundler service is now available as a paid service. The bundler item data signature address must be recharged with ar in order to use the bundler service
  2. Bundler gateway url changed.
zyjblockchain commented 2 years ago

v1.3.2 version has resloved this problem