K
K
CDCloudflare Developers
Created by K on 11/28/2024 in #workers-help
Access runtime APIs in wrangler Pages and Astro framework
Is there any other way now?
4 replies
CDCloudflare Developers
Created by K on 11/28/2024 in #workers-help
Access runtime APIs in wrangler Pages and Astro framework
are depreciated
4 replies
CDCloudflare Developers
Created by K on 11/28/2024 in #workers-help
Access runtime APIs in wrangler Pages and Astro framework
4 replies
CDCloudflare Developers
Created by K on 11/6/2024 in #general-help
What is "prepaid" meaning for storage?
If anyone is interested, serving 2 transformations with R2+Image Resizing, is cost comparable to Images storage and delivery. Quick math with ratio of 1 image added per 100 views: (2*$5/10,000+2*500KB*$0.015/(1GB)+2*$4.5/1e6+100*$0.36/1e6)/100)*1e5=1.06 US$ vs (($5/1e5+100*$1/1e5)/100)*1e5= 1.05 US$
6 replies
CDCloudflare Developers
Created by K on 11/6/2024 in #general-help
What is "prepaid" meaning for storage?
(So a dual setup.) This would serve the spike in traffic till one would upgrade Images amount.
6 replies
CDCloudflare Developers
Created by K on 11/6/2024 in #general-help
What is "prepaid" meaning for storage?
Thank you @Chaika. Idea of solution might be to have prepaid amount (say 200k prepaid images) then have a worker that would catch "over quota" error and send excess images to R2 and Image Resizing.
6 replies
CDCloudflare Developers
Created by K on 3/14/2024 in #workers-help
Simultaneous fetches over 6 are being dropped instead of being queued.
I found out that the error happens when trying to resolve fetches in Promise.all() So with this code:
let promises=[];
let results=[]
for (let i =0;i<10;i++){
let url = new URL("https://echo.free.beeceptor.com/")
promises.push(fetch(url, {cf:{cacheEverything: false,cacheTtl:0}}))

}
let promises=[];
let results=[]
for (let i =0;i<10;i++){
let url = new URL("https://echo.free.beeceptor.com/")
promises.push(fetch(url, {cf:{cacheEverything: false,cacheTtl:0}}))

}
this won't work: await Promise.all(promises).then(results2=>{results = results2}) but this code below works
await Promise.all(
promises.map(
async (task)=>{
await task.then(
async (r)=>{
results.push(await r.json() )
})
})
)
console.log(results)
await Promise.all(
promises.map(
async (task)=>{
await task.then(
async (r)=>{
results.push(await r.json() )
})
})
)
console.log(results)
Judging by time it takes working code to resolve, it seems to be doing 6 fetches concurrently. I think it might be error in how worker parses code for queing. And promise.all seems to be omitted.
8 replies
CDCloudflare Developers
Created by K on 3/14/2024 in #workers-help
Simultaneous fetches over 6 are being dropped instead of being queued.
I'm still interested in having this solved
8 replies
CDCloudflare Developers
Created by Sem on 3/15/2024 in #general-help
iPad Air not compatible with cloudflare dash?
Different browser?
6 replies
CDCloudflare Developers
Created by Baptistabomb on 3/16/2024 in #general-help
Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size lim
You can send emails in html format, if that's what you want to do. Probably there are lighter packages for that.
19 replies
CDCloudflare Developers
Created by RJ Viper on 3/17/2024 in #general-help
DDNS Synology
I think you should have a script that will check your router's IP and point your domain to it.
8 replies
CDCloudflare Developers
Created by Lotrez on 3/13/2024 in #pages-help
Service binding fetcher misunderstanding
So I should point to my worker URL? Yes. How can I get that from a pages function? You can just write it in your code. When deploying your worker you get yourproject.workers.dev.
5 replies
CDCloudflare Developers
Created by Lotrez on 3/13/2024 in #pages-help
Service binding fetcher misunderstanding
Not sure if it's an correct answer but any url works.
5 replies
CDCloudflare Developers
Created by K on 3/14/2024 in #workers-help
Simultaneous fetches over 6 are being dropped instead of being queued.
Even with 7 it throws error.
8 replies
CDCloudflare Developers
Created by K on 3/14/2024 in #workers-help
Simultaneous fetches over 6 are being dropped instead of being queued.
I've tested with 7, 10 and 30.
8 replies
CDCloudflare Developers
Created by K on 3/14/2024 in #workers-help
Simultaneous fetches over 6 are being dropped instead of being queued.
"Response closed due to connection limit"
8 replies