potato
potato
Explore posts from servers
CDCloudflare Developers
Created by potato on 9/8/2023 in #workers-help
Error when init with yarn
4 replies
CDCloudflare Developers
Created by potato on 9/8/2023 in #workers-help
Error when init with yarn
FIX: use yarn create cloudflare instead of yarn create cloudflare@latest
4 replies
CDCloudflare Developers
Created by potato on 9/6/2023 in #workers-help
How to upload png/webp to r2 via worker
nvm found out the images on github is very horrible quality. am just gonna get the images my self and put into bucket
2 replies
CDCloudflare Developers
Created by potato on 9/5/2023 in #general-help
[name].app or [name]api.com
aight thanks!
4 replies
CDCloudflare Developers
Created by potato on 9/5/2023 in #workers-help
Can't access r2 object on worker
thank you
3 replies
CDCloudflare Developers
Created by potato on 9/4/2023 in #workers-help
Error when trying to get file from r2 via wrangler
😭
6 replies
CDCloudflare Developers
Created by potato on 9/4/2023 in #workers-help
Error when trying to get file from r2 via wrangler
i accidentaly put a _ instead of a - in my bucket name in wrangler.toml
6 replies
CDCloudflare Developers
Created by potato on 9/4/2023 in #workers-help
Error when trying to get file from r2 via wrangler
I hate myself
6 replies
CDCloudflare Developers
Created by potato on 9/4/2023 in #workers-help
Error when trying to get file from r2 via wrangler
const object = await env.BUCKET.get('image.png');
if (object === null) {
console.log("doesn't exist image");
} else {
console.log(typeof object);
}

const list = await env.BUCKET.list();
console.log(JSON.stringify(list))
const object = await env.BUCKET.get('image.png');
if (object === null) {
console.log("doesn't exist image");
} else {
console.log(typeof object);
}

const list = await env.BUCKET.list();
console.log(JSON.stringify(list))
[mf:inf] Updated and ready on http://127.0.0.1:50084/
doesn't exist image
{"objects":[],"truncated":false,"delimitedPrefixes":[]}
[mf:inf] GET /__scheduled 200 OK (12ms)
[mf:inf] Updated and ready on http://127.0.0.1:50084/
doesn't exist image
{"objects":[],"truncated":false,"delimitedPrefixes":[]}
[mf:inf] GET /__scheduled 200 OK (12ms)
6 replies
CDCloudflare Developers
Created by potato on 9/4/2023 in #workers-help
Error when trying to get file from r2 via wrangler
also when i try to access it via workers on local with miniflare it says the object wasnt found
6 replies
CDCloudflare Developers
Created by potato on 9/3/2023 in #workers-help
▲ [WARNING] Miniflare 3 does not support CRON triggers yet, ignoring...
ah, thats smart. Thanks!
7 replies
CDCloudflare Developers
Created by potato on 9/3/2023 in #workers-help
▲ [WARNING] Miniflare 3 does not support CRON triggers yet, ignoring...
im sorry what i meant was if there was a way to use cron triggers since it isnt supported by miniflare 3
7 replies
CDCloudflare Developers
Created by potato on 9/3/2023 in #workers-help
Default example that generates when initializing cloudflare worker project not working.
👍
10 replies
CDCloudflare Developers
Created by potato on 9/3/2023 in #workers-help
Default example that generates when initializing cloudflare worker project not working.
welp thanks
10 replies
CDCloudflare Developers
Created by potato on 9/3/2023 in #workers-help
Default example that generates when initializing cloudflare worker project not working.
oh what its working now
10 replies
CDCloudflare Developers
Created by potato on 9/3/2023 in #workers-help
Default example that generates when initializing cloudflare worker project not working.
Now i got a longer error 😭
10 replies
CDCloudflare Developers
Created by potato on 9/3/2023 in #workers-help
Default example that generates when initializing cloudflare worker project not working.
10 replies
CDCloudflare Developers
Created by potato on 9/3/2023 in #workers-help
Default example that generates when initializing cloudflare worker project not working.
with __scheduled flag
10 replies