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

Website handle server errors more gracefully

Open RubelliteFae opened this issue 2 years ago • 2 comments

Back end:

  • on or around 2023.6.25— Since we surpassed ~3000 concurrent requests 30B_7 has been down from user load. 30B_6 seemed to be working with page refresh.

Front end:

  • 2023.6.27— the front end stopped showing new replies without page refresh.
  • 2023.6.28— showing me logged in on front page, but logged out in Chat section.
  • 2023.6.28— site frequently gone altogether & replaced with error message Internal Server Error

RubelliteFae avatar Jun 29 '23 00:06 RubelliteFae

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

Console:

  • 38x Failed to load resource: the server responded with a status of 500 ()
  • 10x
n = 1
errorCode: undefined
httpStatusCode: 500
message: "Internal Server Error"
method: "put" path: "/api/chat"
[[Prototype]]: Object
constructor: class n
...
 [[FunctionLocation]]: _app-c2d6c1dc5c97c94d.js:6
  • 2x
unkLoadError: Loading chunk 1759 failed.
(error: https://open-assistant.io/_next/static/chunks/1759.b24d71a58d896433.js)
    at u.f.j (webpack-831a80463eae87cd.js:1:27815)
    at webpack-831a80463eae87cd.js:1:1433
    at Array.reduce (<anonymous>)
    at u.e (webpack-831a80463eae87cd.js:1:1399)
    at 9856.3821e8f9639ebca3.js:1:625
    at T (framework-ce84985cd166733a.js:25:3197)
    at i (framework-ce84985cd166733a.js:9:119947)
    at oO (framework-ce84985cd166733a.js:9:99114)
    at framework-ce84985cd166733a.js:9:94163
    at oS (framework-ce84985cd166733a.js:9:94170)
  • 1x
in-70e4b9535b9ffc41.js:1 A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred
J @ main-70e4b9535b9ffc41.js:1
  • 1x
pp-c2d6c1dc5c97c94d.js:6 [next-auth][error][CLIENT_FETCH_ERROR] 
https://next-auth.js.org/errors#client_fetch_error Unexpected token 'I', "Internal S"... is not valid JSON Object
error @ _app-c2d6c1dc5c97c94d.js:6

Documentation's suggested fix: Possible Ways to Fix It "Add error boundaries in your React tree to gracefully handle client-side errors and render a fallback view when they occur."

RubelliteFae avatar Jun 29 '23 01:06 RubelliteFae

Hey! I can pick this up. Do we have designs for how to error/fall back page is supposed to appear ?

harshild avatar Jul 18 '23 12:07 harshild