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

"Application error: a client-side exception has occurred" when rendering the answer #51

Closed
aspirinj opened this issue Feb 5, 2024 · 8 comments
Assignees

Comments

@aspirinj
Copy link

aspirinj commented Feb 5, 2024

Failed to render the answer. The browser displayed Application error: a client-side exception has occurred (see the browser console for more information). error.

In the chrome console:

938-fe6b19e2b7ce9569.js:1 TypeError: Failed to construct 'URL': Invalid URL
    at v (page-aa42ac90a70baa43.js:1:5723)
    at rb (fd9d1056-7fda3e9b28bca7f7.js:1:40329)
    at iU (fd9d1056-7fda3e9b28bca7f7.js:1:116116)
    at o2 (fd9d1056-7fda3e9b28bca7f7.js:1:94369)
    at fd9d1056-7fda3e9b28bca7f7.js:1:94191
    at o1 (fd9d1056-7fda3e9b28bca7f7.js:1:94198)
    at oV (fd9d1056-7fda3e9b28bca7f7.js:1:91685)
    at oB (fd9d1056-7fda3e9b28bca7f7.js:1:91110)
    at MessagePort.w (938-fe6b19e2b7ce9569.js:1:99426)

I checked the result variable in stream_and_upload_to_kv() method, it contains a valid string "'[{"kind": "customsearch#result", "title": "This is Why We 'Live Long and Prosper' | Star Trek", "ht......"

My setup:
OS: windows 11
node: v18.19.0
python: 3.11.41
leptonai 0.16.0
openai 1.10.0

image

@seanxuu
Copy link

seanxuu commented Feb 7, 2024

same here

@seanxuu
Copy link

seanxuu commented Feb 7, 2024

same here

I try to use the google api and I deploy the service at the lepton.run

@chinern
Copy link

chinern commented Feb 7, 2024 via email

@Szmbbq
Copy link

Szmbbq commented Feb 9, 2024

Same here. BACKEND=GOOGLE won't work.

@seanxuu
Copy link

seanxuu commented Feb 9, 2024

Same here. BACKEND=GOOGLE won't work.

I think it is because the format of google's results does not match the front-end codes(BING works fine). But I can not find the solution....

@seanxuu
Copy link

seanxuu commented Feb 9, 2024

Same here. BACKEND=GOOGLE won't work.

I just find the #49 solves the problem!

Maybe you can have a try.

@Szmbbq
Copy link

Szmbbq commented Feb 10, 2024

Same here. BACKEND=GOOGLE won't work.

I just find the #49 solves the problem!

Maybe you can have a try.

Thanks for sharing. Just confirmed it worked.

@aspirinj
Copy link
Author

Same here. BACKEND=GOOGLE won't work.

I just find the #49 solves the problem!

Maybe you can have a try.

Thanks! It works with this fix. Hopefully the PR will be merged soon. Close for now.

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

5 participants