I have question regarding Cloudflare Snippets. Docs says that 2 subrequest are allowed but: ``` asyn

I have question regarding Cloudflare Snippets. Docs says that 2 subrequest are allowed but:
async function getNTPTime() {
const ntpApiUrl = 'http://worldtimeapi.org/api/timezone/Etc/UTC';

try {
const ntpResponse = await fetch(ntpApiUrl);

if (!ntpResponse.ok) {
throw new Error(`NTP server responded with status ${ntpResponse.status}`);
}

const ntpData = await ntpResponse.json();
const epochTimeInMs = ntpData.unixtime * 1000;

return epochTimeInMs;
} catch (error) {
throw new Error("Failed to fetch NTP time: " + error.message);
}
}
async function getNTPTime() {
const ntpApiUrl = 'http://worldtimeapi.org/api/timezone/Etc/UTC';

try {
const ntpResponse = await fetch(ntpApiUrl);

if (!ntpResponse.ok) {
throw new Error(`NTP server responded with status ${ntpResponse.status}`);
}

const ntpData = await ntpResponse.json();
const epochTimeInMs = ntpData.unixtime * 1000;

return epochTimeInMs;
} catch (error) {
throw new Error("Failed to fetch NTP time: " + error.message);
}
}
This REST request return Error: Failed to fetch NTP time: NTP server responded with status 520 What could be the cause?
17 Replies
LRY
LRY2mo ago
I would like to ask, I hosted my domain name on CloudFlare, I turned off CloudFlare, why is it still not 100% the IP address of my own server?
Peps
Peps2mo ago
?channel-crossposting
Flare
Flare2mo ago
Please do not post your question in multiple channels/post it multiple times per the rules at ⁠#😃welcome-and-rules. It creates confusion for people trying to help you and doesn't get your issue or question solved any faster.
jasperagrante
jasperagrante2mo ago
My builds are getting stuck without code changes (had 1 success build on preview branch and now stuck on prod). Build is already done based on the logs
No description
yvs8
yvs82mo ago
Can I update my website files or change it after being uploaded? EDIT: solved ✅
Isaac McFadyen
Isaac McFadyen2mo ago
?abuse
Flare
Flare2mo ago
If you feel that a site is engaging in illegal or inappropriate activities, you can submit an abuse report at https://abuse.cloudflare.com/. The Trust and Safety team will review the details and reply if appropriate. You can also report the site to your relevant local authorities. Reports cannot be filed via Discord or with individual employees or Champs.
vegas3855
vegas38552mo ago
oh yes
Isaac McFadyen
Isaac McFadyen2mo ago
Going to remove these as we don't want spam/phishing links lying around.
vegas3855
vegas38552mo ago
okay thanks pls i will write on abuse link thank u very much
ejcx
ejcx2mo ago
Hi, I've been stuck for a few days on a pages issue because the bundle has exceeded 25MB using pages sites. I'm not an expert, but it seems like the bundling gets bigger the more dynamic routes you have which is something that is pretty much required for most serious websites. Has anyone found workarounds to this? I don't know what to do to make the bundle smaller and if I can't (or the limit can't be increased) my only option is to go to vercel
Isaac McFadyen
Isaac McFadyen2mo ago
Are you using next-on-pages by chance?
ejcx
ejcx2mo ago
Yeah it's next
Isaac McFadyen
Isaac McFadyen2mo ago
If so you might want to ask in #next-on-pages, I believe there are some Next-specific things you can do to help reduce.
ejcx
ejcx2mo ago
Okay! I missed that channel, thanks
otisan
otisan2mo ago
hello, anyone experiencing the same thing as me (with similar structure), or can share with me how you run your tests?
f33r0
f33r02mo ago
Hi! Has anyone figured out how to use domain names on another provider with pages ?
Want results from more Discord servers?
Add your server