Is that just by running the constructor
Is that just by running the constructor? What is the instance trying to do when it errors like that
{"success":false,"error":"Internal error in Durable Object storage caused object to be reset."}c your ctx object?env, specifically env.characterAgent separate from ctx? async fetch(request, env, ctx):name?const name = c.req.query('name');smol-brains-5183{"success":false,"error":"Internal error in Durable Object storage caused object to be reset."}cenv.characterAgent async fetch(request, env, ctx):const name = c.req.query('name');smol-brains-5183 try {
const characterStub = await getAgentByName<Env, CharacterAgent>(
c.env.CharacterAgent,
name,
);
return await characterStub.onRequest(c.req.raw);
} catch (e: any) {
return c.json({
success: false,
error: e.message,
});
} onRequest(request: Request): Response | Promise<Response> {
console.log('got request:', request);
return new Response('Hello from Agent!');
}