Hello,
I’m currently working on a small automation script to generate a Fivem project server without having to do it manually.
The first time it worked like a charm but now, when I try to fetch from this URL: https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/
I’m getting a timeout.
Have you imposed any restrictions?
Just to clarify, I have no issues accessing the page directly, only when trying to fetch data from it.
This is the snippet code to fetch the data using JS with Node :
async function downloadFiveMArtifacts() {
try {
const fetchOptions = {
timeout: 5000, // timeout for the fetch request
};
const artifactURL =
"https://runtime.fivem.net/artifacts/fivem/build_server_windows/master";
const response = await fetch(artifactURL, fetchOptions);
if (!response.ok) {
console.error(
`Server response error: ${response.status} ${response.statusText}`
);
return;
}
} catch (error) {
console.error(`An error occurred: ${error}`);
--> `An error occurred: FetchError: network timeout at: https://runtime.fivem.net/artifacts/fivem/build_server_windows/master
}
}
``
Well, I just had to reboot my computer, and now I can perform fetches without any issues. Odd.
This topic was automatically closed after 10 days. New replies are no longer allowed.