Each time I’m trying to subscribe to a community I get
Failed to subscribe to topic 61d573bf0e712d7b4ea2ce71/social/community/61d5741bfd40a2681c6d5cf9/post/+ O
error Error: Amity SDK (800000): Unexpected error
at construct (native)
at _createSuperInternal (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:262927:294)
at call (native)
at ASCUnknownError (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:263459:26)
at callbackWrapper (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:279210:102)
at cb (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:264824:31)
at anonymous (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:265418:25)
at anonymous (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:264600:36)
at work (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:264509:39)
at anonymous (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:264522:23)
at doWrite (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:276679:159)
at writeOrBuffer (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:276670:26)
at anonymous (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:276603:38)
at ondata (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:276022:39)
at call (native)
at emitOne (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:268821:35)
at emit (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:268872:24)
at addChunk (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:275798:30)
at readableAddChunk (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:275785:33)
at anonymous (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:275753:40)
at anonymous (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:268615:44)
at onreadable (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:268587:32)
at call (native)
at emitNone (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:268814:35)
at emit (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:268869:25)
at emitReadable_ (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:275946:30)
at apply (native)
at anonymous (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:275000:27)
at drainQueue (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:274973:47)
at apply (native)
at anonymous (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:29257:26)
at _callTimer (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:29196:17)
at callTimers (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:29352:19)
at apply (native)
at __callFunction (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:2371:36)
at anonymous (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:2132:31)
at __guard (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:2322:15)
at callFunctionReturnFlushedQueue (http://192.168.0.138:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=de.hlp.application:2131:21)
My test code is pretty much what is in the guide
const subscribePostTopic = (targetType: string, targetId: string) => {
if (isSubscribed.current) return;
// Community is currently the only target we are fetching posts now
if (targetType === 'community' && community?.data) {
const communityTopic = getCommunityTopic(
community.data,
SubscriptionLevels.POST,
);
console.log('here', community.data);
disposers.current.push(
subscribeTopic(communityTopic, e => {
console.log('error', e.stack); // use callback to handle errors with event subscription
}),
);
isSubscribed.current = true;
}
};
Was anyone else able to get live updates from the community posts?