yeah, ive done that but i keep getting
yeah, ive done that but i keep getting
Error: internal error
23 Replies
What's the id? Could it be some character in the id itself?
the durable object ID of the affected instance?
Yes. Since you are using Agent, I'm assuming you are using a human readable name rather than an opaque GUID
the ID is
smol-brains-10985
. the DO id is 0d98a1818d13e963b905dc11f22eddd1e51869ab8243bb9401b8085469576833
if that helps.
appreciate the help.I should have said, "name". Is that smol-brains-10985
yep
Is there any data in that instance?
cant check, because trying to access RPC methods just gives me internal server error
could check that instance's databaseSize in the GraphQL API
Can you push an update with an onRequest handler and hit that instead of using RPC?
That may not work because partyserver/set-name might actually be involved even with onRequest, but just giving you some more ideas to try
is this to just check if the request passes to onRequest or not?
something like this will suffice?
Sure
But if that works, then you can use that to inspect the data
Upgrade onRequest with code to inspect the data
Actually, I don't think you need to call super.onRequest
onRequest is a callback so the data comes through the Agent class's fetch handler so it gets a chance to do whatever it needs to do. This is why I don't think you should call super.onRequest
oh ok. what should i return here then?
return new Response("Hello from Agent!");
or something like thatgot it
I'm not familiar with CharacterAgent. I just use fetch to get to my Agent's onRequest callback
ok, still getting
this is the code:
its not going to the onRequest at all
it seems like the DO for this ID is just broken
What about
await characterStub.fetch(reconstructedRequest),
will try that out
Sorry, I cut and paste without editing. It's changed now. It now says,
.fetch(...
instead of .onRequest(...
yep
but failed again:
doesnt log
I'm out of ideas for now
gotta be borked
can a cf employee examine the issue using the reference id?