Error Code 400 during Rarible lazymint

I received the following error while doing Rarible lazymint.

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

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

And this error also…

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.


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.


Did you manage to resolve this?

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

1 Like