From ebda7644dbf1a4cf0712b31a5fa3a68ccf3aa470 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 5 Jul 2021 13:49:41 +0200 Subject: [PATCH] fix: test api with safe CID This avoids issues with https://github.com/ipfs/go-ipfs/issues/8230 --- src/bundles/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bundles/config.js b/src/bundles/config.js index 82a2df8cc..dbc65a0b9 100644 --- a/src/bundles/config.js +++ b/src/bundles/config.js @@ -110,7 +110,7 @@ function getURLFromAddress (name, config) { const checkIfGatewayUrlIsAccessible = memoize(async (url) => { try { const { status } = await fetch( - `${url}/ipfs/bafkqaaa` + `${url}/ipfs/bafkqae2xmvwgg33nmuqhi3zajfiemuzahiwss` ) return status === 200 } catch (e) { @@ -125,7 +125,7 @@ const checkIfGatewayUrlIsAccessible = memoize(async (url) => { const checkIfSubdomainGatewayUrlIsAccessible = memoize(async (url) => { try { url = new URL(url) - url.hostname = `bafkqaaa.ipfs.${url.hostname}` + url.hostname = `bafkqae2xmvwgg33nmuqhi3zajfiemuzahiwss.ipfs.${url.hostname}` const { status } = await fetch(url.toString()) return status === 200 } catch (e) {