From daf828eacaedd3ae6c9fa72a800439db48980840 Mon Sep 17 00:00:00 2001 From: jsalyers <jsalyers@syncad.com> Date: Wed, 4 Aug 2021 13:10:22 -0400 Subject: [PATCH] [JES] For now, check by error code value. Team is working on determining if those codes are unique/usable/suitable for this case but it's working on testing for now --- src/api/transports/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/transports/http.js b/src/api/transports/http.js index dad9ecf..deb56dd 100644 --- a/src/api/transports/http.js +++ b/src/api/transports/http.js @@ -46,7 +46,7 @@ export function jsonRpc(uri, {method, id, params, fetchMethod=fetch}) { throw new Error(`Invalid response id: ${ rpcRes.id }`); } if (rpcRes.error) { - if (rpcRes.error.data.toString().includes('does not exist')) + if (rpcRes.error.code === -32602) { //hivemind returns an error when tags aren't found, but it's not really an error //because the http return code was ok, so just return an empty response instead -- GitLab