Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Application error: a client-side exception has occurred (see the browser console for more information).

Open webplaytestxyz opened this issue 2 years ago • 5 comments

I have installed Docker Desktop and created new Dev Environment with this Github , so everything should be at default settings.

Browser says there is this error when clicking any of the buttons on the screen: Application error: a client-side exception has occurred (see the browser console for more information).

Browser console: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/api/v1/auth/check. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200. 2 Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. NextJS 13 framework-3b5a00d5d7e8d93b.js:9:69816 Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. NextJS 13 main-a7a580e9c35c177d.js:1:10503 A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred main-a7a580e9c35c177d.js:1:10520 [next-auth][error][CLIENT_FETCH_ERROR] https://next-auth.js.org/errors#client_fetch_error NetworkError when attempting to fetch resource. Object { error: {…}, url: "/api/auth/session", message: "NetworkError when attempting to fetch resource." } _app-ea7f0b508794703c.js:1:49703

webplaytestxyz avatar Feb 03 '23 19:02 webplaytestxyz

Is this breaking anything? This is something I setup and haven't finished yet. So it's semi-expected

fozziethebeat avatar Feb 06 '23 12:02 fozziethebeat

I thought Open-Assistant would have had some functionality in it already. If you click a button and it gives that error, I think that means it is broken.

webplaytestxyz avatar Feb 06 '23 23:02 webplaytestxyz

By broken, I mean does this prevent you from using the application at all? This is a http fetch call from the browser I know about but it shouldn't be interrupting the user experience.

fozziethebeat avatar Feb 07 '23 07:02 fozziethebeat

It happens to me multiple times while adding replies in Vietnamese in open-assistant.io. Here's the console log:

Error: React.Children.only expected to receive a single React element child. NextJS 16 only E ak ui i oD oO oO oE oP r8 oz eF ri nV nI

[framework-3b5a00d5d7e8d93b.js:9:69816](https://open-assistant.io/_next/static/chunks/framework-3b5a00d5d7e8d93b.js) Error: React.Children.only expected to receive a single React element child. NextJS 16 only E ak ui i oD oO oO oE oP r8 oz eF ri nV nI

[main-a7a580e9c35c177d.js:1:10503](https://open-assistant.io/_next/static/chunks/main-a7a580e9c35c177d.js) A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred [main-a7a580e9c35c177d.js:1:10520](https://open-assistant.io/_next/static/chunks/main-a7a580e9c35c177d.js)

CactiStaccingCrane avatar Feb 08 '23 01:02 CactiStaccingCrane

These other errors look like different bugs. I've verified that the check API call doesn't break anything. These other issues seem like other bugs we'll have to hunt down.

fozziethebeat avatar Feb 08 '23 05:02 fozziethebeat

I will close this one now, since the error is unclear and not reproducible, in case the issue persists, feel free to re-open.

AbdBarho avatar Mar 05 '23 08:03 AbdBarho