Effect CommunityEC
Effect Community2mo ago
6 replies
vivi

Entity Defects in @effect/cluster: TypeError Issues

I'm getting some sporadic entity defects on the latest version of @effect/cluster. The entity basically just has a Work RPC which runs a Chat.generateText loop and then schedules the next Work call. It seems like it works most of the time and then occasionally gives me one of the two following errors:

[09:24:36.027] ERROR (#2636): Defect in entity, restarting
  TypeError: Cannot read properties of undefined (reading 'context')


or:

[09:27:20.130] ERROR (#3662): Defect in entity, restarting
  TypeError: Cannot destructure property 'lastSentChunk' of 'activeRequests.get(...)' as it is undefined.


Full errors in thread. I think this is a bug in the actual cluster code but maybe there's something I'm doing wrong
Was this page helpful?