[SOLVED] Failed running cloud function getTokenPrice for user undefined

Getting this error. Was working a few minutes ago and i updated to latest .111

https://ucfacmjtzrig.usemoralis.com:2053/server/functions/getTokenPrice 400

Failed running cloud function getTokenPrice for user undefined with:
Input: {“chain”:“polygon”,“address”:“0xD7ab84BA3b8A73d8616C8CAf3Af15dbC84b34249”}
Error: {“message”:"[object Object]",“code”:141}

Are you sure that it was working before with those exact parameters?
getTokenPrice should work on polygon, but not with any new released token, the token has to be present in a liquidity pool and to have enough liquidity. It looks like 0xD7ab84BA3b8A73d8616C8CAf3Af15dbC84b34249 has only 13 transactions in polygonscan

okay that could be it the team im working with switched the token contract from https://polygonscan.com/address/0xD7ab84BA3b8A73d8616C8CAf3Af15dbC84b34249

so to be clear the new token because its not present in a LP it will not work with that function?

Yes, that is why it would not work with that function.

1 Like