Larry
Larry
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
I'm out of ideas for now
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
Sorry, I cut and paste without editing. It's changed now. It now says, .fetch(... instead of .onRequest(...
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
What about await characterStub.fetch(reconstructedRequest),
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
I'm not familiar with CharacterAgent. I just use fetch to get to my Agent's onRequest callback
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
or something like that
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
return new Response("Hello from Agent!");
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
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
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
Actually, I don't think you need to call super.onRequest
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
Upgrade onRequest with code to inspect the data
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
But if that works, then you can use that to inspect the data
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
Sure
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
That may not work because partyserver/set-name might actually be involved even with onRequest, but just giving you some more ideas to try
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
Can you push an update with an onRequest handler and hit that instead of using RPC?
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
Is there any data in that instance?
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
I should have said, "name". Is that smol-brains-10985
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
Yes. Since you are using Agent, I'm assuming you are using a human readable name rather than an opaque GUID
37 replies
CDCloudflare Developers
Created by jcheese on 4/30/2025 in #durable-objects
yeah, ive done that but i keep getting
What's the id? Could it be some character in the id itself?
37 replies