You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered trouble receiving remote calls after successfully joining from the iOS to the macOS cluster.
13:52:04 error [sact://Boguś@127.0.0.1:7337�[1m/system/receptionist�[0;0m][OperationLogDistributedReceptionist.swift:861] Failed to pushOps: DistributedCluster.OpLogDistributedReceptionist.PushOps
// metadata:
// "actor/id": [$wellKnown: receptionist]
// "error": GenericRemoteCallError(message: "Remote call error of [SerializationError] type occurred")
// "receptionist/peer": [$wellKnown: receptionist]
I am running a sample project on the macOS cluster on 192.168.1.8:8228. The same philosopher dining sample was copied to a simple iOS app with little modification:
finalclassDiningPhilosophers{privatevarforks:[Fork]=[]privatevarphilosophers:[Philosopher]=[]func run(for duration:Duration)asyncthrows{letsystem=awaitClusterSystem("Boguś"){ settings in
settings.bindPort =7337
settings.remoteCall.codableErrorAllowance =.all
}
system.cluster.join(host:"192.168.1.8", port:8228)tryawaitself.ensureCluster([system], within:.seconds(10))letleftFork=Fork(name:"fork-6", actorSystem: system)letrightFork=Fork(name:"fork-7", actorSystem: system)letbogus=Philosopher(
name:"Boguś",
leftFork: leftFork,
rightFork: rightFork,
actorSystem: system
)await system.receptionist.checkIn(bogus, with:.thinkers)varthinkers:WeakActorDictionary<Philosopher>=[:]
for awaitphilosopher in await system.receptionist.listing(of:.thinkers){print("Philosopher # \(philosopher.hashValue) exists!")
thinkers.insert(philosopher)}try system.park(atMost: duration)}privatefunc ensureCluster(_ systems:[ClusterSystem], within:Duration)asyncthrows{letnodes=Set(systems.map(\.settings.bindNode))tryawaitwithThrowingTaskGroup(of:Void.self){ group in
for system in systems {
group.addTask{tryawait system.cluster.waitFor(nodes,.up, within: within)}}// loop explicitly to propagagte any error that might have been thrown
for tryawait_ in group {}}}}
How can I fix it?
The text was updated successfully, but these errors were encountered:
I have encountered trouble receiving remote calls after successfully joining from the iOS to the macOS cluster.
I am running a sample project on the macOS cluster on
192.168.1.8:8228
. The same philosopher dining sample was copied to a simple iOS app with little modification:How can I fix it?
The text was updated successfully, but these errors were encountered: