Why update_order_sort.php respond 524

My website works fine after enabling cloudflare, but try to request /px/api/update_order_sort.php then get response 524, and ray id is 7d17a8d419cace64

Why update_order_sort.php respond 524 after enabling cloudflare, and respond 200 after disabling cloudflare?

I am sure if I disanble cloudflare, the ‘/px/api/update_order_sort.php’ can be called well.

//取得最新訂單
function GetNew() {
var data = ;
data.push({
“role”: “admin”
});
data = JSON.stringify(data);
data = data.substring(1, data.length - 1);
var url = server + ‘update_order_sort.php’;
var xmlhttp = new XMLHttpRequest();
xmlhttp.open(“POST”, url, true);
xmlhttp.setRequestHeader(“Content-type”, “application/x-www-form-urlencoded”);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
var res = xmlhttp.responseText;
console.log(res);
GetCount();
GetOrders(1);
}
}
xmlhttp.send(‘data=’ + data);
}

Are you still encountering this error?

YES Sir. I still have this issue to solve.

May you have some hint or expeirice to share with me ? Thank you.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.