Error Code 400 during Rarible lazymint

I received the following error while doing Rarible lazymint.
image

received error at “console.log(res);” line

if (Moralis.User.current() != null){
              loggedUserAdd = Moralis.User.current().get('ethAddress')
              console.log(loggedUserAdd)
                  let metadataHash = jsonFile.hash();
                  console.log(jsonFile.ipfs())
                  let res = await Moralis.Plugins.rarible.lazyMint({
                      chain: 'rinkeby',
                      userAddress: loggedUserAdd,
                      tokenType: 'ERC721',
                      tokenUri: 'ipfs://' + metadataHash,
                      royaltiesAmount: 5, // 0.05% royalty. Optional
                  })
                  console.log(res); 
    }

And this error also…
image

Not sure what is causing this error.

I think that I saw this error before in another forum thread, but I don’t know what it means

I tried using the code from github

and still got the same error. I am guessing this is an error from the plugin.

Can you show the whole error object?
Screenshot 2021-11-15 at 09.32.18

Hi Dani, really sorry for the late response. For the error 502 it did not give me any error object and I am unable to recreate it now. However i am receiving the below error now and have know idea why.

image

Did you update the plugin to latest version?

Yes the current version is 0.0.45

Can you share the payload you are sending to the plugin?

I was using the code from the above YouTube tutorial code and trying to mint an image.

Hey,

Did you manage to resolve this?

Nope…I created my own marketplace which supports lazymint.:laughing:

1 Like