catch imgproxy pro unvailable errors
This commit is contained in:
parent
56c2682c9e
commit
b451ecaf8c
|
@ -107,8 +107,13 @@ export const createImgproxyUrls = async (id, text, { models, forceFetch }) => {
|
||||||
console.log('[imgproxy] id:', id, '-- not image url:', url)
|
console.log('[imgproxy] id:', id, '-- not image url:', url)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
imgproxyUrls[url] = {
|
imgproxyUrls[url] = {}
|
||||||
dimensions: await getDimensions(fetchUrl)
|
try {
|
||||||
|
imgproxyUrls[url] = {
|
||||||
|
dimensions: await getDimensions(fetchUrl)
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log('[imgproxy] id:', id, '-- error getting dimensions (possibly not running imgproxy pro)')
|
||||||
}
|
}
|
||||||
for (const res of resolutions) {
|
for (const res of resolutions) {
|
||||||
const [w, h] = res.split('x')
|
const [w, h] = res.split('x')
|
||||||
|
|
Loading…
Reference in New Issue