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

docker部署MJ接口报错 #336

Closed
owcowc opened this issue May 13, 2024 · 7 comments
Closed

docker部署MJ接口报错 #336

owcowc opened this issue May 13, 2024 · 7 comments

Comments

@owcowc
Copy link

owcowc commented May 13, 2024

同样一个接口网址和令牌,用docker环境不熟的话就会报错:
{
"error": "SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON",
"code": "json_error",
"url": "/mjapi/mj/submit/imagine",
"status": 403
}

如果是在页面设置-服务器-里面填写的话就可以正常使用

@Dooy
Copy link
Owner

Dooy commented May 13, 2024

后端 mj_server 没填对吧

@owcowc
Copy link
Author

owcowc commented May 13, 2024

后端 mj_server 没填对吧

有大小写之分吗 我用的MJ_SERVER

@owcowc
Copy link
Author

owcowc commented May 13, 2024

后端 mj_server 没填对吧

应该不是大小写的问题,用同一套地址和密钥,后端设置就是报错,前端设置就可以

@Dooy
Copy link
Owner

Dooy commented May 13, 2024

得用大写 MJ_SERVER 设置 MJ_API_SECRET

@owcowc
Copy link
Author

owcowc commented May 13, 2024

得用大写 MJ_SERVER 设置 MJ_API_SECRET

是的 两个都设置了

@owcowc
Copy link
Author

owcowc commented May 14, 2024

从api接口那里查,用环境部署的接口和密钥提交时都被默认加上了 --fast
只有我是这样吗?

@Dooy
Copy link
Owner

Dooy commented May 15, 2024

大部分 默认都是 fast啊

@Dooy Dooy closed this as completed May 23, 2024
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

2 participants