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] Application error: a client-side exception has occurred #355

Open
juancarlosm opened this issue Sep 7, 2024 · 6 comments
Open

[bug] Application error: a client-side exception has occurred #355

juancarlosm opened this issue Sep 7, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@juancarlosm
Copy link

juancarlosm commented Sep 7, 2024

Describe the bug
UI hangs with: Application error: a client-side exception has occurred

To Reproduce
Ask: "Show me a code snippet of a website's sticky header in CSS and JavaScript."
Model: OpenAI.gpt-4o-mini

Expected behavior
Formatted response

Screenshots
image

Console log

TypeError: Cannot read properties of undefined (reading 'type')
at 307-7bbaef59fbef2173.js:133:6098
at e (307-7bbaef59fbef2173.js:133:6374)
at render (307-7bbaef59fbef2173.js:133:2889)
at 307-7bbaef59fbef2173.js:133:6142
at e (307-7bbaef59fbef2173.js:133:6374)
at e (307-7bbaef59fbef2173.js:133:6273)
at render (307-7bbaef59fbef2173.js:133:3949)
at 307-7bbaef59fbef2173.js:133:6142
at e (307-7bbaef59fbef2173.js:133:6374)
at e (307-7bbaef59fbef2173.js:133:6273)
window.console.error @ 69-9a0f3fb9a2c5697d.js:1
lE @ fd9d1056-dfcb53b47a6849ce.js:1
n.callback @ fd9d1056-dfcb53b47a6849ce.js:1
ng @ fd9d1056-dfcb53b47a6849ce.js:1
ny @ fd9d1056-dfcb53b47a6849ce.js:1
a$ @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
(anonymous) @ fd9d1056-dfcb53b47a6849ce.js:1
o7 @ fd9d1056-dfcb53b47a6849ce.js:1
oH @ fd9d1056-dfcb53b47a6849ce.js:1
oj @ fd9d1056-dfcb53b47a6849ce.js:1
M @ 69-9a0f3fb9a2c5697d.js:1
69-9a0f3fb9a2c5697d.js:1 DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at aY (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:76259)
at aK (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:75683)
at aY (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:76772)
at aK (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:75683)
at aY (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:76996)
at aK (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:75683)
at aY (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:76996)
at aK (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:75683)
at aY (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:76772)
at aK (http://localhost:3000/_next/static/chunks/fd9d1056-dfcb53b47a6849ce.js:1:75683)
window.console.error @ 69-9a0f3fb9a2c5697d.js:1
lE @ fd9d1056-dfcb53b47a6849ce.js:1
n.callback @ fd9d1056-dfcb53b47a6849ce.js:1
ng @ fd9d1056-dfcb53b47a6849ce.js:1
ny @ fd9d1056-dfcb53b47a6849ce.js:1
a$ @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
(anonymous) @ fd9d1056-dfcb53b47a6849ce.js:1
o7 @ fd9d1056-dfcb53b47a6849ce.js:1
n2 @ fd9d1056-dfcb53b47a6849ce.js:1
(anonymous) @ fd9d1056-dfcb53b47a6849ce.js:1
o7 @ fd9d1056-dfcb53b47a6849ce.js:1
oH @ fd9d1056-dfcb53b47a6849ce.js:1
oj @ fd9d1056-dfcb53b47a6849ce.js:1
M @ 69-9a0f3fb9a2c5697d.js:1

@juancarlosm juancarlosm added the bug Something isn't working label Sep 7, 2024
@ItzCrazyKns
Copy link
Owner

can you provide the logs from the browser console

@again2k
Copy link

again2k commented Sep 7, 2024

I got the same issue, when click 'Search images' or 'Search videos'

console logs:


453-547b71eb71b166ae.js:1 
        
        POST http://127.0.0.1:3001/api/videos 500 (Internal Server Error)
onClick @ 453-547b71eb71b166ae.js:1
aS @ fd9d1056-dfcb53b47a6849ce.js:1
aN @ fd9d1056-dfcb53b47a6849ce.js:1
(anonymous) @ fd9d1056-dfcb53b47a6849ce.js:1
sw @ fd9d1056-dfcb53b47a6849ce.js:1
sS @ fd9d1056-dfcb53b47a6849ce.js:1
(anonymous) @ fd9d1056-dfcb53b47a6849ce.js:1
oK @ fd9d1056-dfcb53b47a6849ce.js:1
iL @ fd9d1056-dfcb53b47a6849ce.js:1
sN @ fd9d1056-dfcb53b47a6849ce.js:1
uE @ fd9d1056-dfcb53b47a6849ce.js:1
uS @ fd9d1056-dfcb53b47a6849ce.js:1
69-9a0f3fb9a2c5697d.js:1 TypeError: Cannot read properties of undefined (reading 'length')
    at F (453-547b71eb71b166ae.js:1:14343)
    at rk (fd9d1056-dfcb53b47a6849ce.js:1:40395)
    at lI (fd9d1056-dfcb53b47a6849ce.js:1:59202)
    at iB (fd9d1056-dfcb53b47a6849ce.js:1:117301)
    at o4 (fd9d1056-dfcb53b47a6849ce.js:1:94657)
    at fd9d1056-dfcb53b47a6849ce.js:1:94479
    at o3 (fd9d1056-dfcb53b47a6849ce.js:1:94486)
    at oQ (fd9d1056-dfcb53b47a6849ce.js:1:91973)
    at oj (fd9d1056-dfcb53b47a6849ce.js:1:91398)
    at MessagePort.M (69-9a0f3fb9a2c5697d.js:1:80137)
push.945.window.console.error @ 69-9a0f3fb9a2c5697d.js:1
lE @ fd9d1056-dfcb53b47a6849ce.js:1
n.callback @ fd9d1056-dfcb53b47a6849ce.js:1
ng @ fd9d1056-dfcb53b47a6849ce.js:1
ny @ fd9d1056-dfcb53b47a6849ce.js:1
a$ @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
a2 @ fd9d1056-dfcb53b47a6849ce.js:1
aV @ fd9d1056-dfcb53b47a6849ce.js:1
(anonymous) @ fd9d1056-dfcb53b47a6849ce.js:1
o7 @ fd9d1056-dfcb53b47a6849ce.js:1
oH @ fd9d1056-dfcb53b47a6849ce.js:1
oj @ fd9d1056-dfcb53b47a6849ce.js:1
M @ 69-9a0f3fb9a2c5697d.js:1
453-547b71eb71b166ae.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'map')
    at onClick (453-547b71eb71b166ae.js:1:13548)

@juancarlosm
Copy link
Author

can you provide the logs from the browser console

I have updated the initial issue with console logs

@ItzCrazyKns
Copy link
Owner

I'll try to reproduce

@ItzCrazyKns
Copy link
Owner

image
Turns out it doesn't happen when you load the chat from library but when you stream it, I'll do more debugging

@ItzCrazyKns
Copy link
Owner

Turns out it was an issue with markdown-to-jsx which is what we use to parse markdown. Please follow this issue for more updates: quantizor/markdown-to-jsx#602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants