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

[BUG]服务端数据库模式下用户的话题似乎无法同步 #3005

Closed
breakstring opened this issue Jun 24, 2024 · 13 comments
Closed

[BUG]服务端数据库模式下用户的话题似乎无法同步 #3005

breakstring opened this issue Jun 24, 2024 · 13 comments

Comments

@breakstring
Copy link

抱歉,刚手机上发现的,用Github APP没法打开issue模板。

服务端部署方式:Vercel
版本:1.1.6
客户端1: Mac PWA
客户端2: Android PWA

复现步骤:
1,客户端1上登录并聊天
2,客户端2上同一账号登录
3,客户端2上能看到消息数量,但是消息列表中没有聊天记录

IMG_20240624_122245.jpg

Screenshot_2024-06-24-12-22-15-709_com.microsoft.emmx.jpg

@lobehubbot
Copy link
Member

👀 @breakstring

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented Jun 24, 2024

这个应该是pwa 下的一个auth问题,你试试切到发现,然后再切回会话?

@lobehubbot
Copy link
Member

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


This should be an auth issue under pwa. Can you try switching to discovery and then switching back to session?

@breakstring
Copy link
Author

这个应该是pwa 下的一个auth问题,你试试切到发现,然后再切回会话?

不行。
1,我现在在客户端2上直接随便聊聊,列表中也不出现我聊的内容
2,从发现里随便找个助手添加到对话并聊天,可以出现在列表中。但是关掉PWA并重新打开后刚才那个聊天也就不见了。

@lobehubbot
Copy link
Member

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


This should be an auth issue under pwa. Can you try switching to discovery and then switching back to session?

no.

  1. I am chatting directly on client 2, and the content I chat does not appear in the list.
  2. Find an assistant from Discovery and add it to the conversation and chat. It can appear in the list. But after closing the PWA and reopening it, the chat just now disappeared.

@arvinxx
Copy link
Contributor

arvinxx commented Jun 24, 2024

你看下日志那边有没有什么报错

@lobehubbot
Copy link
Member

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


Check the logs to see if there are any errors.

@breakstring
Copy link
Author

你看下日志那边有没有什么报错

刚更新到 1.1.7,Android PWA 上测试了一下看到后台的确有错误:
image

BTW: 注意到刚才在 Android PWA 上那条消息出现在了 Mac PWA 上,但是 Android 上没有。

@gaspire
Copy link

gaspire commented Jun 25, 2024

@breakstring 如何配置服务端数据库模式,我修改了以下环境变量,启动报401错误:
NEXT_PUBLIC_SERVICE_MODE=server
DATABASE_URL=postgres:https://:@127.0.0.1:5432/lobe
KEY_VAULTS_SECRET=BT1PaMM8LWsP2FfuMaMlo59niX4/woVZTgEYimgu3Jo=

@lobehubbot
Copy link
Member

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


@breakstring How to configure the server database mode, I modified the following environment variables, and a 401 error was reported at startup:

@breakstring
Copy link
Author

@breakstring 如何配置服务端数据库模式,我修改了以下环境变量,启动报401错误:
NEXT_PUBLIC_SERVICE_MODE=server
DATABASE_URL=postgres:https://:@127.0.0.1:5432/lobe
KEY_VAULTS_SECRET=BT1PaMM8LWsP2FfuMaMlo59niX4/woVZTgEYimgu3Jo=

呃 我是Vercel用的Vercel的serverless数据库倒是没有问题……你要不还是查查看日志的错误信息排查下吧

@lobehubbot
Copy link
Member

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


@breakstring How to configure the server database mode, I modified the following environment variables, and a 401 error was reported at startup:
NEXT_PUBLIC_SERVICE_MODE=server
DATABASE_URL=postgres:https://:@127.0.0.1:5432/lobe
KEY_VAULTS_SECRET=BT1PaMM8LWsP2FfuMaMlo59niX4/woVZTgEYimgu3Jo=

Well, I am using Vercel's serverless database and there is no problem... Why don't you check the error message in the log to troubleshoot it?

@lobehubbot
Copy link
Member

@breakstring

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

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