Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用DALL-E插件时图片无法显示 #24

Closed
happychos opened this issue Sep 20, 2023 · 9 comments
Closed

使用DALL-E插件时图片无法显示 #24

happychos opened this issue Sep 20, 2023 · 9 comments

Comments

@happychos
Copy link

使用DALL-E插件时图片无法显示,连续尝试几次都是如此,但是在R2中是有文件生成的
image
image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: The picture cannot be displayed when using the DALL-E plug-in

When using the DALL-E plug-in, the picture cannot be displayed. This happens after several consecutive attempts, but the file is generated in R2.
image
image

@Hk-Gosuto
Copy link
Owner

直接请求 /api/file/xxxx.png 这个路由(图片换成已经上传的),然后看下请求日志中有没有错误信息。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Directly request the route /api/file/xxxx.png (replace the image with the one that has been uploaded), and then check whether there is any error message in the request log.

@mouxangithub
Copy link

同样的问题,好像S3的域是访问不了不对外的,配了个R2.dev 子域或者自定义域就可以用这两个域名访问

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I have the same problem. It seems that the S3 domain cannot be accessed externally. If I configure an R2.dev subdomain or a custom domain, I can use these two domain names to access it.

@mouxangithub
Copy link

mouxangithub commented Sep 20, 2023

直接请求 /api/file/xxxx.png 这个路由(图片换成已经上传的),然后看下请求日志中有没有错误信息。

看了下确实是图片跨域不对外访问的问题,可以加个图片域配置,S3域是不对外访问,并且直接访问那个图片返回的内容是
{
"error": true,
"msg": "empty access code"
}

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Directly request the route /api/file/xxxx.png (replace the picture with the one that has been uploaded), and then check whether there is any error message in the request log.

After looking at it, it is indeed a problem that the images are not accessible to the outside world across domains. You can add an image domain configuration. The S3 domain is not accessible to the outside world.

@Hk-Gosuto
Copy link
Owner

这个是接口鉴权的问题导致的,目前已将该接口的鉴权移除了,更新到最新的主分支代码再尝试一下。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


This is caused by an interface authentication problem. The authentication of this interface has been removed. Update to the latest main branch code and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants