11ty / api-indieweb-avatar

Return an optimized avatar image from a domain name input.
https://v1.indieweb-avatar.11ty.dev/
65 stars 12 forks source link

Error: img/XXX.png: unable to open for write #11

Closed duboiss closed 2 years ago

duboiss commented 2 years ago

Wanting to use this project, I tested to deploy on Netlify by hand or via the quick deployment button available on the readme. Each time the generation does not work

CleanShot 2022-08-28 at 14 38 07@2x

Aug 28, 02:35:28 PM: 0fd32e94 INFO   Fetching undefined
Aug 28, 02:35:28 PM: 0fd32e94 INFO   Error Error: Invalid `url`: undefined
    at new AvatarHtml (/var/task/functions/avatar/avatarHtml.js:12:13)
    at handler (/var/task/functions/avatar/index.js:19:18)
    at Runtime.handler (/var/task/node_modules/@netlify/functions/src/lib/builder.js:34:21)
    at Runtime.handleOnce (file:///var/runtime/index.mjs:548:29)
Aug 28, 02:35:28 PM: 0fd32e94 Duration: 5.03 ms Memory Usage: 99 MB Init Duration: 495.46 ms    Aug 28, 02:35:28 PM: 1b4790ed INFO   Fetching undefined
Aug 28, 02:35:28 PM: 1b4790ed INFO   Error Error: Invalid `url`: undefined
    at new AvatarHtml (/var/task/functions/avatar/avatarHtml.js:12:13)
    at handler (/var/task/functions/avatar/index.js:19:18)
    at Runtime.handler (/var/task/node_modules/@netlify/functions/src/lib/builder.js:34:21)
    at Runtime.handleOnce (file:///var/runtime/index.mjs:548:29)
Aug 28, 02:35:28 PM: 1b4790ed Duration: 4.52 ms Memory Usage: 99 MB Init Duration: 512.48 ms    Aug 28, 02:35:42 PM: f1b8c3c6 INFO   Fetching favicon.ico
Aug 28, 02:35:42 PM: f1b8c3c6 INFO   Error Error: Invalid `url`: favicon.ico
    at new AvatarHtml (/var/task/functions/avatar/avatarHtml.js:12:13)
    at handler (/var/task/functions/avatar/index.js:19:18)
    at Runtime.handler (/var/task/node_modules/@netlify/functions/src/lib/builder.js:34:21)
    at Runtime.handleOnce (file:///var/runtime/index.mjs:548:29)
Aug 28, 02:35:42 PM: f1b8c3c6 Duration: 2.58 ms Memory Usage: 100 MB    Aug 28, 02:35:47 PM: 737861be INFO   Fetching https://netlify.com
Aug 28, 02:35:48 PM: 737861be INFO   Fetching: https://netlify.com/v3/static/favicon/apple-touch-icon.png
Aug 28, 02:35:48 PM: 737861be INFO   Error [Error: img/J9xtjeg7gv-60.png: unable to open for write
unix error: No such file or directory
]
Aug 28, 02:35:48 PM: 737861be Duration: 896.07 ms   Memory Usage: 116 MB    

Is there any manual configuration to do on the Netlify side? I haven't found anything like that.

Endpoint: https://cheery-scone-f3ef16.netlify.app Endpoint exemple: https://cheery-scone-f3ef16.netlify.app/https%3A%2F%2Fnetlify.com

Thanks