Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix flaky tests
Rūdolfs Ošiņš committed 1 year ago
commit c35b4a3dc5364ee38f992175e3d1a3091ac2f907
parent 6cbd6336dc06dacdf6d84f6c4ab0e042f8d36439
1 file changed +4 -0
modified src/lib/invoke.ts
@@ -13,6 +13,10 @@ export async function invoke<T = null>(
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify(args),
    }).then(async response => {
+
      if (response.status === 404) {
+
        console.log("Got a 404 response:", response);
+
        return null;
+
      }
      const json = await response.json();
      if (!response.ok) {
        throw json;