我正在研究 NextJS 和 Strapi 项目。我使用 Cloudinary 作为我的媒体库。但是当我试图从 cloudinary 渲染图像时,图像没有显示并给出这个错误:
upstream image response failed for https://res.cloudinary.com/djpxkfscg/image/upload/v1682152278/thumbnail_61_Mt_Y773_Mt_L_SL_1200_a5da8bdb0f.jpg 404
我不知道为什么会这样。这是代码:
<Image alt="ecommerce" className="h-full flex justify-center mx-auto" width={500} height={500} src={item.attributes.image.data.attributes.formats.thumbnail.url} />
这是网址:
我是 Danny,Cloudinary 的一名开发人员支持工程师。
当资产在您的云中不可用时,将返回此错误。 我查看了我们的后端日志,发现您的帐户中没有使用该名称的资产。看起来 was 具有公共 ID
thumbnail_61_Mt_Y773_Mt_L_SL_1200_a5da8bdb0f
的资产,但是在发布此问题前约 30 分钟通过媒体库 UI 将其删除。
应该只是上传资产并保存到同一个公共ID的情况。如果这不起作用,请通过 https://support.cloudinary.com 联系我们,我们将能够提供帮助。