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

Minified React error: Verba gui stops loading #271

Open
2 of 6 tasks
Marc-Vreeburg opened this issue Sep 5, 2024 · 9 comments
Open
2 of 6 tasks

Minified React error: Verba gui stops loading #271

Marc-Vreeburg opened this issue Sep 5, 2024 · 9 comments
Labels
investigating Bugs that are still being investigated whether they are valid

Comments

@Marc-Vreeburg
Copy link

Description

Trying to get Verba running in Docker. Containers are build and running without errors.
When starting gui with http://ipadres_local:8000 gui hangs with browser developer tool complaining about React:

Minified React error #418
Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:

  • A server/client branch if (typeof window !== 'undefined').
  • Variable input such as Date.now() or Math.random() which changes each time it's called.
  • Date formatting in a user's locale which doesn't match the server.
  • External changing data without sending a snapshot of it along with the HTML.
  • Invalid HTML tag nesting.

It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.

https://react.dev/link/hydration-mismatch[missing argument]

Minified React error #423
There was an error while hydrating but React was able to recover by instead client rendering the entire root.

Failed to fetch from http://localhost:8000/api/health: TypeError: Failed to fetch

Failed to load resource: net::ERR_CONNECTION_REFUSED

Minified React error #425
Text content does not match server-rendered HTML.

Installation

  • pip install goldenverba
  • pip install from source
  • Docker installation

If you installed via pip, please specify the version:

Weaviate Deployment

  • Local Deployment
  • Docker Deployment
  • Cloud Deployment

Configuration

Running Docker / Docker compose on Ubuntu

Additional context

No problem with code before merge 2.0
I'm using a browser without extensions.

@thomashacker
Copy link
Collaborator

Interesting, thanks a lot for the issue! I will look into it

@thomashacker thomashacker added the investigating Bugs that are still being investigated whether they are valid label Sep 13, 2024
@thomashacker
Copy link
Collaborator

Hey, sorry for the late reply!
Are you still receiving the same issue?

@Marc-Vreeburg
Copy link
Author

I don't get the deployment menu:
Incomplete gui

I think it's a connection problem:
Connection error

@thomashacker
Copy link
Collaborator

Interesting, thanks a lot! I just released the newest v2.1 version and made some changes to the Docker implementation. Could you retry and let me know if the error persists?

If yes, can you share more information about how you installed Verba? Thanks 🚀

@Marc-Vreeburg
Copy link
Author

Thank you. The error has disappeared.

However now i'm having time out issues using batch vectorization with large pdf files and ingesting multiple files in one go. Looks like websocket connection times out way too early.

@thomashacker
Copy link
Collaborator

Yes, unfortunately, there is a known bug with the socket timeout (#346)

Could you share the exact error message you're receiving? Thanks

@Marc-Vreeburg
Copy link
Author

error2
error1

@thomashacker
Copy link
Collaborator

Thanks for the info! I think it is indeed the timeout error that is happening around 50 seconds while importing. Can you confirm this issue is appearing after a minute?

@Marc-Vreeburg
Copy link
Author

Marc-Vreeburg commented Dec 28, 2024

No. Batch vectorization fails after exactly 300 seconds (with multiple files and/or single files) if files are larger than approximately 400Kb (pdf):

Foutmelding

Tested today with both Chrome and Firefox browser with same result.

Problem looks like this one: https://github.com/housleyjk/aiopyramid/issues/29
Suggested solution: ping-pong mechanism to keep connection open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Bugs that are still being investigated whether they are valid
Projects
None yet
Development

No branches or pull requests

2 participants