I am trying to get all NFTs from a candy machine v1 or v2. I found this link: NFTs | Solana Cookbook.
But when I use the code in the cookbook with candy machine id: BdNtsrV26ZHdqDFxmDfLib6CrcUNj4ePorhppHreRgER. I keep getting a timeout error, tested on multiple RPC endpoints. How to get rid of this timeout?