If we connect a container to R2, does that trigger paid egress on the container, or like workers is
If we connect a container to R2, does that trigger paid egress on the container, or like workers is that considered free egress?
npx wrangler dev? Surfacing our errors (since only your own logs go into the logs tab right now) in that tab is on our roadmap.bunx wrangler dev or on my live deployed container with logging enabled. That pane is completely empty.
fetch request to it until that check passes"[HTTP Client] Making POST request to http://localhost:3000/api/write", I get the following error message:dcb4030e8dbbd797c6f34192fba09c75e77c42d32244b52680d3431302e0a7eewriteFile causes the container to lose connectivity, and then it kinda 'hangs'.a03e7cbd-ed24-485c-92c4-eeb9bac1ae5dwriteFile API?writeFile. Interestingly I get this on execute:npx wrangler devbunx wrangler devfetchimport { Container, getContainer } from "@cloudflare/containers";
export class dummy extends Container {
constructor(state, env) {
super(state, env);
// Set envVars in constructor
this.envVars = {
NAME: env.name,
};
}
sleepAfter = "30m";
async onStart() {
console.log("Container started");
}
enableInternet = true;
onStop() {
console.log("Container shut down");
}
onError(error) {
console.log("Error:", error);
}
}
export default {
async fetch(request, env, ctx) {
// Trigger Durable Object
console.log("Manual trigger → starting container");
const container = getContainer(env.DUMMY);
await container.start({
startOptions: {
envVars: {
// You can pass dynamic values here
MANUAL_TRIGGERED_AT: new Date().toISOString(),
},
},
});
return new Response("Container manually triggered and executed", {
status: 200,
});
},
async scheduled(controller, env, ctx) {
console.log("Cron triggered");
const container = getContainer(env.DUMMY);
await container.start({
startOptions: {
envVars: {
CRON_TRIGGERED_AT: new Date().toISOString(),
},
},
});
},
};"[HTTP Client] Making POST request to http://localhost:3000/api/write""Sandbox error:",
"Error: Container connectivity was lost"dcb4030e8dbbd797c6f34192fba09c75e77c42d32244b52680d3431302e0a7eewriteFilewriteFilewriteFilea03e7cbd-ed24-485c-92c4-eeb9bac1ae5dexecute"[HTTP Client] Error executing in session:",
"Error: Session 'sandbox-default' not found"