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] [AppFlowy-Web] Record Not Found #7221

Open
smartyhero opened this issue Jan 15, 2025 · 14 comments
Open

[Bug] [AppFlowy-Web] Record Not Found #7221

smartyhero opened this issue Jan 15, 2025 · 14 comments

Comments

@smartyhero
Copy link

Bug Description

My self-hosted appflowy has many documents on the web page that say Record Not Found
image
image

How to Reproduce

I don't know how to reproduce

Expected Behavior

The page can be displayed normally

Operating System

mac,win

AppFlowy Version(s)

0.8.1, 0.1.2

Screenshots

No response

Additional Context

No response

@khorshuheng
Copy link
Collaborator

khorshuheng commented Jan 15, 2025

Can you check if the collab id (last part of the URL) exists in the af_collab table? The id column is "oid".

EDIT: Just noticed that the AppFlowy Cloud version is 0.8.1 . The current version of AppFlowy Web (0.1.2) requires minimum AppFlowy Cloud version 0.9.9. I have not verified if it will work with AppFlowy Cloud version 0.8.1, but even if it does, some functionality will not work properly.

@smartyhero
Copy link
Author

The data exists
image
The version of appflowy-cloud is the latest, version 0.9.11

@smartyhero
Copy link
Author

image
This is the log of appflowy-cloud I found

@khorshuheng
Copy link
Collaborator

On the developer console - the API request that returns the error about RecordNotFound, is it the get page view API?

@smartyhero
Copy link
Author

image
/api/workspace/4aea66a2-406a-4ebb-bb83-26646234398e/page-view/44c0521d-a514-48e1-92e1-ba489e9f5fe2

@khorshuheng
Copy link
Collaborator

Noted. I think i might need to add more descriptive error message on AppFlowy Cloud in order to find out the root cause. Do you remember if this page is a database, or a document?

@smartyhero
Copy link
Author

It is a document

@khorshuheng
Copy link
Collaborator

Could you use this appflowy cloud image: appflowyinc/appflowy_cloud:4831ce7e65babaf4c36db0c80d03d18c29d62c0a ? This is built from AppFlowy-IO/AppFlowy-Cloud#1166 , which hasn't been merged yet. This does not fix the issue, but it may show error messages which are more useful to troubleshoot the issue.

@smartyhero
Copy link
Author

This is the error returned by the api now

{
    "code": 1017,
    "message": "Unable to get user detail for 1: no rows returned by a query that expected to return at least one row"
}

image
Below is the log of appflowy-cloud
image

@khorshuheng
Copy link
Collaborator

Have you ever deleted/removed some users, who may have edited the document in the past?

Nevertheless, I think we can handle such case, such that it doesn't result in a complete failure of page rendering

@smartyhero
Copy link
Author

I may have deleted a user, but I don't remember clearly

I checked my database, and there is no user with uid 1

It seems that 1 is a special uid, and the uids of my existing users are all very long strings of numbers

@khorshuheng
Copy link
Collaborator

Yes, you are correct. We only use uid = 1 for integration test, so it's strange that it appears here. But in any case, this scenario (last editor/owner not found) is something that we should have handled on the backend. We will fix this.

@smartyhero
Copy link
Author

Thank you for your contribution

@khorshuheng
Copy link
Collaborator

Will be fixed by AppFlowy-IO/AppFlowy-Cloud#1171 .

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

2 participants