mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2026-07-25 21:46:08 -04:00
"500 App is unavailable" when fetching empty conversations #28
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stepacool on GitHub (Apr 26, 2024).
I pulled the repository to my local machine and set the required environment variables. After I started the project with





npm run devIt 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.
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 commented on GitHub (Apr 28, 2024):
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
@cuixin992173697 commented on GitHub (Jul 15, 2024):
I have the same problem, the page show "500 | app is unavailable" ,
@marsDes commented on GitHub (Jul 17, 2024):
confirm you app type is Conversation Application
and has created env.local file like this
@hponiang commented on GitHub (Jul 25, 2024):
检查本地是否开了代理,把代理完全关闭去掉。
@iamjoel commented on GitHub (Aug 7, 2024):
Maybe caused by not set NEXT_PUBLIC_API_URL or set the wrong NEXT_PUBLIC_API_URL value? @stepacool
@hqz010 commented on GitHub (Sep 2, 2024):
经过调试测试跟踪,发现错误是以下引起的,发现如果配置的后台ai agent的prompt中配置了变量就会出错这个问题,如果换一个没有配变量的ai agent或是助手时就可以正常的启动运行
@iamjoel commented on GitHub (Sep 3, 2024):
Still can't reproduce after I add the variable in prompt in an agent chat app. @hqz010
@hqz010 commented on GitHub (Sep 3, 2024):
昨天的那个版本代码,因该是一些代码没有合并进来,见如下,线上可以配置5种变量类型




但是prompt.ts中代码有三种
在app.ts中只定义了两种变量类型
因该是代码没有合并全
@iamjoel
@turndown commented on GitHub (Sep 13, 2024):
我今天拉了代码,运行还是报这个错误。请问下env的三个参数,NEXT_PUBLIC_APP_ID填的是dify里对应的什么参数?
@iamjoel commented on GitHub (Sep 13, 2024):
You can find the app id in the url of app detail page.

@turndown commented on GitHub (Sep 13, 2024):
Thank you. And it's my fault that I wrote wrong key and url which caused 500 err code. Now it works.
@scwu1008 commented on GitHub (Nov 28, 2024):
请问大佬知道这个是为什么吗?
@iamjoel commented on GitHub (Nov 28, 2024):
You can debug in
app/api/parameters/route.tsto find what's caused the problem.@BeiMeng commented on GitHub (Feb 18, 2025):
怎么解决这个问题啊,我也500
App is unavailable
@iamjoel commented on GitHub (Feb 18, 2025):
You can debug in app/api/parameters/route.ts to find what's caused the problem.