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

【必看】常见疑难杂症导航 #164

Closed
deanxv opened this issue Apr 20, 2024 · 0 comments
Closed

【必看】常见疑难杂症导航 #164

deanxv opened this issue Apr 20, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@deanxv
Copy link
Owner

deanxv commented Apr 20, 2024

star项目提issue会被自动关闭!

star项目提issue会被自动关闭!

star项目提issue会被自动关闭!

  1. 几种报错异常返回信息

    1.1

    {
    	"error": {
    		"message": "config error,check logs",
    		"type": "request_error",
    		"param": "",
    		"code": "500"
    	}
    }

    配置异常,需查看服务打印的日志

    1.2

    {
    	"error": {
    		"message": "model_not_found",
    		"type": "request_error",
    		"param": "",
    		"code": "500"
    	}
    }

    一般出现在多机器人配置后,指定的proxySecret(Api-Key)和model在bot_config.json中联合匹配未匹配到Bot的信息

    1.3

    {
    	"error": {
    		"message": "no_available_user_auth",
    		"type": "request_error",
    		"param": "",
    		"code": "500"
    	}
    }

    环境变量USER_AUTHORIZATION中配置的用户authorization全部过期/失效或已达到每日模型调用限制(具体原因查看服务日志)

    1.4

    {
    	"error": {
    		"message": "authorization(proxy-secret)校验失败",
    		"type": "invalid_request_error",
    		"param": "",
    		"code": "invalid_authorization"
    	}
    }

    与openai对齐的接口鉴权请求头为Authorization,value为Bearer < Api-Key >,CDP项目自有接口鉴权请求头为proxy-secret,value为< Api-Key >(Api-Key即是环境变量PROXY_SECRET)

  2. 问题:

    对话接口请求返回为空,但discord中已产生正常对话记录。

    排查思路:

    检查 discord-developers中监听Bot的图中权限是否开启(服务中涉及到的Bot尽量都开启此权限)。

image-20240420122254639
  1. 问题:

    对话接口流式请求下需等待达到超时时间(默认5分钟)才会结束流。

    对话接口非流式请求下抛出超时异常信息。

    集成NextChat后对话正常响应,但始终显示正在输入中。

    排查思路:

    检查coze的Bot调试页面中Auto-Suggtion是否为On/Default。

image-20240420123523565
@deanxv deanxv added the documentation Improvements or additions to documentation label Apr 20, 2024
@deanxv deanxv pinned this issue Apr 20, 2024
Repository owner locked as off-topic and limited conversation to collaborators Apr 20, 2024
@deanxv deanxv closed this as completed Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant