Diagnosed the forked package of typescript-Codegen and found that there was no code to handle ArrayBuffer responses, which was causing the issue