|
|
@ -61,6 +61,7 @@ const searchNFTItems = async ({ limit, offset }: SearchNFTItemsParams) => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
console.log(`returning nft_items`) |
|
|
|
return data.nft_items |
|
|
|
return data.nft_items |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
console.log("error fetch items", e) |
|
|
|
console.log("error fetch items", e) |
|
|
@ -72,9 +73,9 @@ const portion = 500 |
|
|
|
|
|
|
|
|
|
|
|
const fetchTonSite = async (url: string) => { |
|
|
|
const fetchTonSite = async (url: string) => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const urlToFetch = `http://${url}/` |
|
|
|
const urlToFetch = `http://${url}.run/` |
|
|
|
|
|
|
|
// вот здесь ошибка с get-запросом в .ton сайты
|
|
|
|
const response = await axios.get(urlToFetch, { |
|
|
|
const response = await axios.get(urlToFetch, { |
|
|
|
proxy: getTonProxy(), |
|
|
|
|
|
|
|
timeout: 30000 |
|
|
|
timeout: 30000 |
|
|
|
}) |
|
|
|
}) |
|
|
|
if (!response.data) { |
|
|
|
if (!response.data) { |
|
|
@ -83,6 +84,7 @@ const fetchTonSite = async (url: string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
return url |
|
|
|
return url |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
//console.log("throwing excep")
|
|
|
|
// console.log('restart fetch domains',e)
|
|
|
|
// console.log('restart fetch domains',e)
|
|
|
|
throw url |
|
|
|
throw url |
|
|
|
} |
|
|
|
} |
|
|
|