Troubleshooting Trycatch Issues When Interfacing With An Api In R