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
17 Replies
well i have this:
getting
{"success":false,"error":"Internal error in Durable Object storage caused object to be reset."}
its the same as this https://discord.com/channels/595317990191398933/1366937630914248724If you just run a simple function like a console.log() does it still error out?
inside onRequest?
well what is onRequest doing currently?
this is it
Is
c
your ctx object?yeah. using hono
isn't
env
, specifically env.characterAgent
separate from ctx
?
https://developers.cloudflare.com/agents/api-reference/calling-agents/
async fetch(request, env, ctx):
its hono.
export const adminApi = new Hono<{
Bindings: Env;
}>()
ctx is hono context
I am not super familiar with Hono
either way thats not the problem i think. i have multiples of these and it works
Are you always passing a string for
name
?
That's the only thing I can think to cause specific instances to have issuesyeah.
const name = c.req.query('name');
its from query params
also this endpoint is just to demonstrate that its broken
websockets + etc doesnt work also
in productionI just mean like sometimes gets other characters thrown in that maybe can't be serialized into a name ID?
Have you tried writing a simple Durable Object before going down the Agents route?
ids are just something like
smol-brains-5183
i have a full-blown ai appWhat type is Env declared as here?
its auto-generated by cf