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

"500 App is unavailable" when fetching empty conversations #67

Open
stepacool opened this issue Apr 26, 2024 · 1 comment
Open

"500 App is unavailable" when fetching empty conversations #67

stepacool opened this issue Apr 26, 2024 · 1 comment

Comments

@stepacool
Copy link

I pulled the repository to my local machine and set the required environment variables. After I started the project with
npm run dev
It starts and all the requests are 200 OK, but the whole screen is a big 500 App is unavailable.
I reversed engineered the issue and it seems this is happening due to an empty body of /conversations/ API request. Attaching screenshots with error, error logging and potential source of problem.
Screenshot from 2024-04-26 23-46-55
Screenshot from 2024-04-26 23-49-48
Screenshot from 2024-04-26 23-50-09
Screenshot from 2024-04-26 23-51-24
Screenshot from 2024-04-26 23-50-50
Screenshots show that the error is raised here:
const isNotNewConversation = conversations.some(item => item.id === _conversationId)
But gets muted and instead setAppUnavailable() is called.
The error reads "TypeError: Cannot read properties of undefined (reading 'some')
at eval (index.tsx:228:52)" meaning the supposed list conversations is undefined at the moment.

@flyfish01
Copy link

i have same problem. TypeError: conversations is undefined.

TypeError: conversations is undefined
Main index.tsx:236
Main index.tsx:277
commitHookEffectListMount react-dom.development.js:21102
commitHookPassiveMountEffects react-dom.development.js:23154
commitPassiveMountOnFiber react-dom.development.js:23259

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

2 participants