Search code examples
c#azure-service-fabricservice-fabric-actor

Azure: "Service does not exist" on actor call


I have an IActor that I want to call to do some simple reminder-based computation. It is called like so:

var actorId = new ActorId($"item_{resp.ResultValue.Id}");
var scheduler = ActorProxy.Create<IScheduler>(actorId, ITEM_SCHEDUER_URI);
try
{
    await scheduler.SetupReminderAsync(new ItemInformation()
    {
        EntityId = entityId.ToString(),
        Date = resp.ResultValue.AutoResolveOn
    }).ConfigureAwait(false);
}

However, whenever the SetupReminderAsync method is called, I get an HRESULT: 0x80071BCD: Service does not exist exception. I'm not sure what this means as I can plainly see the Actor's service spin up in debug mode. I could really use some guidance on what's happening. Thanks!


Solution

  • It turns out my ITEM_SCHEDULER_URI was not correct because I assumed an endpoint different than what was actually populated. After checking the ApplicationManifest I was able to resolve the issue.