[SOLVED] Uncaught (in promise) RangeError: Maximum call stack size exceeded

Hello guys using the plugin function of moralis

 "Moralis.Plugins.oneInch.swap({
    chain: 'polygon', // The blockchain you want to use (eth/bsc/polygon)
    fromTokenAddress: currentTrade.from.address, // The token you want to swap
    toTokenAddress: currentTrade.to.address, // The token you want to receive
    amount: amount,
    fromAddress: userAddress, // Your wallet address
    slippage: 1,
  });"

I obtain the followin error on console:
“Uncaught (in promise) RangeError: Maximum call stack size exceeded
at encode (moralis.js:27214:16)
at encode (moralis.js:27289:19)
at encode (moralis.js:27289:19)
at encode (moralis.js:27289:19)
at encode (moralis.js:27289:19)
at encode (moralis.js:27289:19)
at encode (moralis.js:27289:19)
at encode (moralis.js:27289:19)
at encode (moralis.js:27289:19)
at encode (moralis.js:27289:19)”

Can you help me??? Thanks in advance

usually you get this error when a parameter that was sent is not a string and it is an object

I solved… there is an error in a variable.

Thanks @cryptokid