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

意外的问题 #473

Open
2693551060 opened this issue Aug 3, 2024 · 4 comments
Open

意外的问题 #473

2693551060 opened this issue Aug 3, 2024 · 4 comments

Comments

@2693551060
Copy link

使用docker部署,填写了MJ的相关环境变量(服务器地址和key),无法调用(new-api也没有请求日志)。聊天正常。报错{
"error": {
"code": "unsupported_country_region_territory",
"message": "Country, region, or territory not supported",
"param": null,
"type": "request_forbidden"
},
"code": "response_fail",
"url": "/mjapi/mj/submit/describe",
"status": 403
}

但是删除环境变量,在WebUi中填写相同的服务器地址和key能正常调用

今天更新才有的问题,之前使用没有出现

@Dooy
Copy link
Owner

Dooy commented Aug 4, 2024

是不是 MJ_SERVER 没配置好?
可以先在 ui 设置的服务器端把mj相关设置填上 new-api 的地址补齐

@2693551060
Copy link
Author

应该不是没配置好,相同的服务器地址和KEY在环境变量填写时不可使用,但在UI界面填写可以使用,更新前的环境变量,我是没有动的,更新前可以用。更新后相同的配置,他却不可以用。我怀疑是在环境变量时请求位置有问题,填写环境变量后的请求的位置多了个/mjapi(报错里有),而不是和ui界面一样的/mj。

@Dooy
Copy link
Owner

Dooy commented Aug 4, 2024

MJ_SERVER 不要跟目录;转到后端 他会自动跟上来

@2693551060
Copy link
Author

2693551060 commented Aug 5, 2024 via email

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