Closed Terence1105 closed 3 months ago
Hi @Terence1105, this looks to be an issue with the remote node provider you're using. If you substitute the node URL with https://testnet-api.algonode.cloud
, the block is successfully downloaded.
I have not determined exactly why the blocks served by api.tatum.io
are different, but I attempted to decode one locally and I did not see a valid msgpack object.
Hi @jasonpaulos ,
Thank you for the quick response and the helpful suggestion. I switched the node URL to https://testnet-api.algonode.cloud as you recommended, and I can confirm that I was able to download the block successfully.
Thanks again!
Example code
Your environment
Branch: v.2.5.0 Go: 1.21 Algo testnet
Steps to reproduce
Expected behaviour
Get the correct block info
Actual behaviour
msgpack decode error [pos 1]: only encoded map or array can be decoded into a struct