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

聊天记录加载异常 #40

Closed
VectorZhao opened this issue Apr 18, 2023 · 13 comments
Closed

聊天记录加载异常 #40

VectorZhao opened this issue Apr 18, 2023 · 13 comments

Comments

@VectorZhao
Copy link

频率:几乎每次必现
平台:手机以及chrome都会出现

error(F12控制台信息)


index-6af8a255.js:319
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'uuid') at Ye (index-6af8a255.js:319:2487) at n (index-d7a924be.js:3105:21180)
  Ye @ index-6af8a255.js:319
  n @ index-d7a924be.js:3105
  setTimeout(异步)    
  (匿名) @ index-d7a924be.js:3105
  ge @ index-6af8a255.js:319
  on @ index-d7a924be.js:1
  Bo @ index-d7a924be.js:1
  o @ index-d7a924be.js:1

image

@VectorZhao
Copy link
Author

对了,docker版本的话我是fork你的项目,github action自己编译的镜像上传至docker hub。应该跟这个没关系吧。

@Kerwin1202
Copy link
Member

自己打包的话 提供 下这个文件吧

image

@VectorZhao
Copy link
Author

这个index-6af8a255.js文件吗?在docker容器内部里面找吗?

@Kerwin1202
Copy link
Member

就截图这个点击一下 然后保存下来就可以了, 另外你报错是原本有聊天记录的是吧 只是刷新的时候加载失败了.. 如果可以的话 提供这块的录屏(可以复现的录屏

image
image1

@VectorZhao
Copy link
Author

error
index-6af8a255.zip

@VectorZhao
Copy link
Author

持续刷新,会交替复现

@Kerwin1202
Copy link
Member

我刷20次都不出现... 要是有你这概率估计早修了, 我晚点看下

@VectorZhao
Copy link
Author

所以说我觉得也很奇怪。。。。。。。。。。我清空缓存试过很多次,

@Kerwin1202
Copy link
Member

你要么自己编译试试看 看了下 这个方法 loadMoreMessage 加 || chatStore.chat[chatIndex].data.length <= 0 如果可以和我说下 我好提交代码

image

@EvanDbg
Copy link

EvanDbg commented Apr 21, 2023

现在console里不出错误了,
但是持续刷新,会交替复现[对话历史一次有,一次为空]。Chrome浏览器

@EvanDbg
Copy link

EvanDbg commented Apr 21, 2023

[聊天历史为空]调用了如下请求
/api/chatrooms

[聊天历史正常]调用了如下请求
/api/chatrooms
/api/chat-hisroty?roomId=1682040885518&lastId=undefined

@EvanDbg
Copy link

EvanDbg commented Apr 21, 2023

看了下动画

  1. 正常情况下 room list 先刷新完成,然后chat content区域刷新,历史记录正常显示
  2. 问题情况下 chat content区域先刷新完成,room list再刷新,显示出来的历史记录会变成空白

bentwng79 added a commit to bentwng79/chatgpt-web that referenced this issue Apr 22, 2023
fix: 聊天记录加载异常 (Close chatgpt-web-dev#40)
@huangwb8
Copy link

@Kerwin1202

在最近的v2.12.6中,聊天记录加载异常再次出现。 表现为访问网站时当前聊天为空,要手动刷新一下才显示历史聊天记录。

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

4 participants