diff --git a/src/api/transports/http.js b/src/api/transports/http.js index dad9ecf8f46914d397cd3f02ee4116cbdf9de4ce..deb56dd4be6c66e306bc560deba857700314b29b 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