Ok, I figured out the problem, after 10 hours I realised the error I was getting was due to Cloudflare blocking the PUT