MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

[Bug] AI reply, when using MCP, Exception:'NoneType' object has no attribute 'get' will appear, although the reply is normal

Open jason922chp opened this issue 7 months ago • 6 comments

Contact Information

No response

MaxKB Version

v1.10.7-lts

Problem Description

AI reply, when using MCP, Exception:'NoneType' object has no attribute 'get' will appear, although the reply is normal。 I can reply to messages normally, but an Exception appears under each sentence: 'NoneType' object has no attribute 'get'

LLM Model:Gemini-1.5-pro

Steps to Reproduce

Image

The expected correct result

No response

Related log output


Additional Information

No response

jason922chp avatar May 22 '25 09:05 jason922chp

您好,请问您的应用配置是怎么样的?另外请展开执行详情看看出错的节点的具体信息。

Shenguobin0102 avatar May 23 '25 01:05 Shenguobin0102

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hello, what is your application configuration? In addition, please expand the execution details to see the specific information of the node where the error occurred.

shaohuzhang1 avatar May 23 '25 01:05 shaohuzhang1

聯絡資訊

沒有回應

MaxKB版本

v1.10.7-lts

問題描述

AI回复,使用MCP時,會出現Exception:'NoneType' object has no attribute 'get',雖然回復是正常的。 我可以正常回覆訊息,但是每句下面都會出現Exception:'NoneType' object has no attribute 'get'

LLM型號:Gemini-1.5-pro

重現步驟

Image

預期的正確結果

沒有回應

相關日誌輸出

附加資訊

沒有回應

已下補充我的應用程式看到配置,每次出現問題的節點都是AI對話。 但如果關閉MCP不會Exception:'NoneType'物件沒有屬性'get'

Image

Image

Image

jason922chp avatar May 23 '25 03:05 jason922chp

您好,您关闭了这个问题,是已经解决了么?

Shenguobin0102 avatar May 23 '25 06:05 Shenguobin0102

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hello, have you closed this problem been solved?

shaohuzhang1 avatar May 23 '25 06:05 shaohuzhang1

沒有,可能我剛剛按到不小心關掉了,每一句的對話底下還是都有Exception:'NoneType' object has no attribute 'get'

jason922chp avatar May 23 '25 09:05 jason922chp

您好,麻烦您展开执行详情,将详情内容截图展示,越详细越好,这样方便排查,谢谢。

Shenguobin0102 avatar May 26 '25 01:05 Shenguobin0102

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hello, please expand the execution details and display the details screenshots. The more detailed the better, it is easier to check, thank you.

shaohuzhang1 avatar May 26 '25 01:05 shaohuzhang1

Contact Information

No response

MaxKB Version

v1.10.7-lts

Problem Description

AI reply, when using MCP, Exception:'NoneType' object has no attribute 'get' will appear, although the reply is normal。 I can reply to messages normally, but an Exception appears under each sentence: 'NoneType' object has no attribute 'get'

LLM Model:Gemini-1.5-pro

Steps to Reproduce

Image

The expected correct result

No response

Related log output

Additional Information

No response

Image

Image

Image

Image

jason922chp avatar May 26 '25 06:05 jason922chp

看不出任何导致问题的原因,能提供一下您使用的mcp服务吗,或者提供一下完整的应用?

Shenguobin0102 avatar May 26 '25 07:05 Shenguobin0102

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I can't see any cause of the problem. Can you provide the mcp service you are using, or provide a complete application?

shaohuzhang1 avatar May 26 '25 07:05 shaohuzhang1

我使用的是DBHUB,https://github.com/bytebase/dbhub,我也有試過用其他MCP但也有出現一樣的問題 以下是我的配置 { "mcp-sqlserver": { "timeout":1080,
"url":"http://172.16.2.18:8081/sse", "transport":"sse" } }

Image

jason922chp avatar May 26 '25 09:05 jason922chp

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I'm using DBHUB, https://github.com/bytebase/dbhub. I've tried using other MCPs but the same problem also occurs. Here is my configuration { "mcp-sqlserver": { "timeout":1080, "url":"http://172.16.2.18:8081/sse", "transport":"sse" } }

Image

shaohuzhang1 avatar May 26 '25 09:05 shaohuzhang1

您好,我们测试了一下,使用Gemini的模型确实会报这个错误,如果换成其他模型,就是正常的,可能是Gemini的模型在传参时不兼容导致的,MaxKB无法处理这个问题,建议您更换模型。

Shenguobin0102 avatar May 27 '25 07:05 Shenguobin0102

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hello, we have tested it. The model using Gemini does report this error. If it is replaced with another model, it is normal. It may be caused by the incompatible Gemini model when passing parameters. MaxKB cannot handle this problem. It is recommended that you change the model.

shaohuzhang1 avatar May 27 '25 07:05 shaohuzhang1