jcheese
jcheese
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
its auto-generated by cf
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
i have a full-blown ai app
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
ids are just something like smol-brains-5183
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
in production
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
websockets + etc doesnt work also
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
also this endpoint is just to demonstrate that its broken
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
its from query params
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
yeah. const name = c.req.query('name');
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
either way thats not the problem i think. i have multiples of these and it works
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
ctx is hono context
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
its hono. export const adminApi = new Hono<{ Bindings: Env; }>()
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
yeah. using hono
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
onRequest(request: Request): Response | Promise<Response> {
console.log('got request:', request);
return new Response('Hello from Agent!');
}
onRequest(request: Request): Response | Promise<Response> {
console.log('got request:', request);
return new Response('Hello from Agent!');
}
this is it
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
inside onRequest?
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
27 replies
CDCloudflare Developers
Created by 1984 Ford Laser on 5/9/2025 in #durable-objects
Is that just by running the constructor
well i have this:
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,
});
}
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,
});
}
getting {"success":false,"error":"Internal error in Durable Object storage caused object to be reset."}
27 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
(error) Could not set server name: Error: internal error; reference = jqjgbhjjs0nqh90t434308pm
(error) Error: Internal error in Durable Object storage caused object to be reset.
(error) Could not set server name: Error: internal error; reference = jqjgbhjjs0nqh90t434308pm
(error) Error: Internal error in Durable Object storage caused object to be reset.
51 replies