相关页面:
https://kitsunes.eu.org/discourse-ai/ai-bot/conversations
现象:网页加载完成后,装载数据会出现 GET 请求成功,POST 请求失败的循环,拉取数据失败后会再次渲染一个页面(此时文档的高度是 200vh),然后尝试再次拉取数据,会造成服务器被 DoS 和浏览器的无限渲染长文档(实际上没什么内容,都是空空的循环文档)
浏览器某次循环中的报错如下:
Uncaught (in promise) TypeError: this.currentUser.ai_enabled_chat_bots is undefined
get hasLlmSelector ai-persona-llm-selector.js:35
get botOptions ai-persona-llm-selector.js:42
p ai-persona-llm-selector.js:23
createComponent base-component-manager.js:26
Ember 42
buildSidebarLinks ai-conversations-sidebar.js:253
fetchMessages ai-conversations-sidebar.js:180
async* ai-conversations-sidebar.js:95
<anonymous> api-sections.gjs:62
35904/get sections/< api-sections.gjs:26
get sections api-sections.gjs:23
get filteredSections api-sections.gjs:40
Ember 24
ai-persona-llm-selector.js:35
get hasLlmSelector ai-persona-llm-selector.js:35
get botOptions ai-persona-llm-selector.js:42
p ai-persona-llm-selector.js:23
createComponent base-component-manager.js:26
Ember 42
buildSidebarLinks ai-conversations-sidebar.js:253
fetchMessages ai-conversations-sidebar.js:180
InterpretGeneratorResume self-hosted:1417
AsyncFunctionNext self-hosted:804
(异步:async)
<anonymous> ai-conversations-sidebar.js:95
<anonymous> api-sections.gjs:62
35904/get sections/< api-sections.gjs:26
map self-hosted:178
get sections api-sections.gjs:23
get filteredSections api-sections.gjs:40
Ember 24
1 个赞
