Infinite yield when calling Roblox auth api

Hey so I’m writing up a little bot to handle some group stuff, it was working fine yesterday until suddenly it took ages to respond. I stripped my code down to the bare minimum and did some tests. If I execute this code it works fine if I init the curl with a url like google.com however as soon as I put in the roblox api url (any of them) it takes ages to respond and eventually times out to my cloudflare.

<?php
	function login() {
	    $ch = curl_init('https://auth.roblox.com/v2/login');
	    $output = curl_exec($ch);

	    curl_close($ch);
	}

	login();
?>

I’m hosting on a hostinger account with SSL and CloudFlare so everything should be secure if that’s the issue, I’ve also put CloudFlare into dev mode so theirs no caching. I have also tried putting in some curl options such as:
image
I have also tried using the v1 api too, no success.

I get a CloudFlare 524 error which is when Cloudflare was able to make a TCP connection to the origin, but the origin did not reply with a HTTP response before the connection timed out. Cloudflare will typically wait for a HTTP response from your server for 100 seconds.

Any help/advice!

Thanks

I have no idea how to fix this but I would like to remind you that this Sub category is visible to Public so you might want to conceal your Username and Password.

Fixed