Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 1d6378d

Browse files
authored
Fix "no handler has been registered for serviceId='errorHandlingSrv' " (#202)
1 parent cf33a7b commit 1d6378d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/fluence-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fluencelabs/fluence",
3-
"version": "0.27.3",
3+
"version": "0.27.4",
44
"description": "TypeScript implementation of Fluence Peer",
55
"main": "./dist/index.js",
66
"typings": "./dist/index.d.ts",

packages/fluence-js/src/internal/FluencePeer.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,11 @@ export class FluencePeer {
655655
return;
656656
}
657657

658+
// Do not proceed further if the particle is expired
659+
if (item.particle.hasExpired()) {
660+
return;
661+
}
662+
658663
// Do not continue if there was an error in particle interpretation
659664
if (item.result instanceof Error) {
660665
log.error('Interpreter failed: ', jsonify(item.result.message));
@@ -699,6 +704,10 @@ export class FluencePeer {
699704
particleContext: item.particle.getParticleContext(),
700705
};
701706

707+
if (item.particle.hasExpired()) {
708+
// just in case do not call any services if the particle is already expired
709+
return;
710+
}
702711
this._execSingleCallRequest(req)
703712
.catch((err): CallServiceResult => {
704713
if (err instanceof ServiceError) {

0 commit comments

Comments
 (0)