mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
Fix flaky tests
It's normal that some of the "alias" queries return a 404 if a DID can't be looked up, in this case the endpoint returns a 404 and we just log it.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user