dani69654 / moralis_opensea_nodejs

A NodeJS implementation of the Moralis OpenSea plugin
4 stars 5 forks source link

Getting Error Code 502 when trying to fulfil order #2

Closed mbotboi closed 2 years ago

mbotboi commented 2 years ago

Hi, I´m using (or trying to at least) Moralis OS plugin, to try and buy NFTs from OS via script. I followed the code from this repo exactly, but I keep being returned an error. The error is like below - Error: Something went wrong { "code": 500003, "message": "Cannot generate a valid web3 transaction payload", ...}

the code fails here - const { data } = await axios.post(${env.SERVER_URL}/functions/opensea_fulfillOrder, { network: _network, userAddress: _userAddress, order: _order, })

Some information on my code for easier troubleshooting -

I also wrote my own script using moralis/node and i get the exact same issue.

Could you help me figure out why? Thanks in advance ser.

mbotboi commented 2 years ago

I am an idiot nvm.

  1. i didnt have enough eth in the wallet
  2. i didnt even initialise the wallet before this. sometimes the issues arent always the code... 🤡 (thats me)