Skip to content

Commit

Permalink
Merge pull request #24 from KillrVideo/serialization-bug
Browse files Browse the repository at this point in the history
Serialisation Bug Handling
  • Loading branch information
HadesArchitect authored Mar 27, 2020
2 parents e5f67c1 + fc1ecaa commit 92fabc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/services/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import { getGrpcClientAsync } from '../utils/grpc-client';
function normalizeAsyncServiceCall(args) {
let argsStr = '';
for (let i = 0; i < args.length; i++) {
argsStr += JSON.stringify(args[i]);
try {
argsStr += JSON.stringify(args[i]);
} catch(err) {
console.error('Failed to stringify given object: ${err}', args[i])
}
}
return argsStr;
}
Expand Down

0 comments on commit 92fabc4

Please sign in to comment.