fs0x30
fs0x30
CDCloudflare Developers
Created by fs0x30 on 9/9/2023 in #workers-help
Cloudflare worker bind address resolved to multiple addresses
kj/async-io-win32.c++:982: warning: Bind address resolved to multiple addresses. Only the first address will be used. If this is incorrect, specify the address numerically. This may be fixed in the future.; addrs[0].toString() = 127.0.0.1:61447 Couldn't find any information on this, what the issue?
5 replies
CDCloudflare Developers
Created by fs0x30 on 8/9/2023 in #workers-help
Wrangler R2 local emulation
I'm working on a project locally and i cannot get the worker to emulate an R2 bucket locally. It works if I use --remote but I want to be able to just use it locally.
// Adding a timeout for the put operation
const timeout = new Promise<Response>((_, reject) => {
const id = setTimeout(() => {
clearTimeout(id);
reject(new Response('Request timed out', { status: 408 }));
}, 30000); // 30 seconds timeout
});

const putOperation = c.env.MY_BUCKET.put(key, data);

await Promise.race([timeout, putOperation]);
// Adding a timeout for the put operation
const timeout = new Promise<Response>((_, reject) => {
const id = setTimeout(() => {
clearTimeout(id);
reject(new Response('Request timed out', { status: 408 }));
}, 30000); // 30 seconds timeout
});

const putOperation = c.env.MY_BUCKET.put(key, data);

await Promise.race([timeout, putOperation]);
just seem to time out every time locally.
14 replies