Hello!
For the address & token you were using, do you see significant differences between the following JSON responses?
https://api.elrond.com/accounts/${ADDRESS}/tokens/${TOKEN_IDENTIFIER}
https://testnet-api.elrond.com/accounts/${ADDRESS}/tokens/${TOKEN_IDENTIFIER}
Also, do you use different versions (or different build pipelines) of your app in testnet vs. mainnet?
Hello @andreibancioiu, I answer late because I debugged it a long time. I think it happens when axios tries to parse a Json response where there are decimal numbers inside with a total length more than 15 digits: like the price (when it is listed on Maiar exchange)
The error is thrown within the json-bigint package that is used in the Axios default config for transform: https://github.com/ElrondNetwork/elrond-sdk-erdjs-network-providers/blob/main/src/config.ts
I have to say that this is all I could find out today. Maybe it helps. It works on testnet because the testnet API response does not include the prices for tokens.
Hello @andreibancioiu, I answer late because I debugged it a long time. I think it happens when axios tries to parse a Json response where there are decimal numbers inside with a total length more than 15 digits: like the price (when it is listed on Maiar exchange) The error is thrown within the json-bigint package that is used in the Axios default config for transform: https://github.com/ElrondNetwork/elrond-sdk-erdjs-network-providers/blob/main/src/config.ts I have to say that this is all I could find out today. Maybe it helps. It works on testnet because the testnet API response does not include the prices for tokens.