App is unavailable #24

Closed
opened 2026-02-16 10:15:50 -05:00 by yindo · 12 comments
Owner

Originally created by @Putnug1122 on GitHub (Mar 16, 2024).

It shown 500 | App is unavailable error on first time run, no error occured on console log, what happen

Originally created by @Putnug1122 on GitHub (Mar 16, 2024). It shown 500 | App is unavailable error on first time run, no error occured on console log, what happen
yindo added the cant reproduce label 2026-02-16 10:15:50 -05:00
yindo closed this issue 2026-02-16 10:15:50 -05:00
Author
Owner

@Abdelilah37 commented on GitHub (Mar 19, 2024):

same with me

@Abdelilah37 commented on GitHub (Mar 19, 2024): same with me
Author
Owner

@Rex-L commented on GitHub (Apr 1, 2024):

same with me

@Rex-L commented on GitHub (Apr 1, 2024): same with me
Author
Owner

@Judy-pic commented on GitHub (Apr 2, 2024):

any one know the reason?

@Judy-pic commented on GitHub (Apr 2, 2024): any one know the reason?
Author
Owner

@Rex-L commented on GitHub (Apr 2, 2024):

I know the reason,Check .env.local file,Values do not require single quotes.
wrong:
image
correct:
NEXT_PUBLIC_APP_ID=xx
NEXT_PUBLIC_APP_KEY=
NEXT_PUBLIC_API_URL=xx

@Rex-L commented on GitHub (Apr 2, 2024): I know the reason,Check .env.local file,Values do not require single quotes. wrong: <img width="466" alt="image" src="https://github.com/langgenius/webapp-conversation/assets/19201465/eef480f1-6559-48b0-8c04-ebc3a39863eb"> correct: NEXT_PUBLIC_APP_ID=xx NEXT_PUBLIC_APP_KEY=<Web API Key From Dify> NEXT_PUBLIC_API_URL=xx
Author
Owner

@Judy-pic commented on GitHub (Apr 2, 2024):

no working for me, I found const _conversationId = getConversationIdFromStorage(APP_ID), _conversationId is undefined

@Judy-pic commented on GitHub (Apr 2, 2024): no working for me, I found const _conversationId = getConversationIdFromStorage(APP_ID), _conversationId is undefined
Author
Owner

@Rex-L commented on GitHub (Apr 2, 2024):

image You'll see resson
@Rex-L commented on GitHub (Apr 2, 2024): <img width="519" alt="image" src="https://github.com/langgenius/webapp-conversation/assets/19201465/32988f0d-9e98-40af-9cbf-b6fc49370f73"> You'll see resson
Author
Owner

@Judy-pic commented on GitHub (Apr 3, 2024):

  const getConversationIdFromStorage = (appId: string) => {
    debugger
    const conversationIdInfo = globalThis.localStorage?.getItem(storageConversationIdKey) ? JSON.parse(globalThis.localStorage?.getItem(storageConversationIdKey) || '') : {}
    const id = conversationIdInfo[appId]
    return id
  }

cannot get id?

@Judy-pic commented on GitHub (Apr 3, 2024): ``` const getConversationIdFromStorage = (appId: string) => { debugger const conversationIdInfo = globalThis.localStorage?.getItem(storageConversationIdKey) ? JSON.parse(globalThis.localStorage?.getItem(storageConversationIdKey) || '') : {} const id = conversationIdInfo[appId] return id } ``` cannot get id?
Author
Owner

@iamjoel commented on GitHub (Aug 7, 2024):

I can't reproduce. Could you provide more detail? @Putnug1122

@iamjoel commented on GitHub (Aug 7, 2024): I can't reproduce. Could you provide more detail? @Putnug1122
Author
Owner

@hqz010 commented on GitHub (Sep 2, 2024):

This is caused by configuring variables in the prompt of the background app. If the variables are not configured, it can run normally. I also hope that the official will modify the bug as soon as possible.
联想截图_20240903104324

@hqz010 commented on GitHub (Sep 2, 2024): This is caused by configuring variables in the prompt of the background app. If the variables are not configured, it can run normally. I also hope that the official will modify the bug as soon as possible. <img width="371" alt="联想截图_20240903104324" src="https://github.com/user-attachments/assets/29cd9a30-4230-4b26-87b8-de2893d68568">
Author
Owner

@hqz010 commented on GitHub (Sep 3, 2024):

在prompt.ts中以下代码处,变量类型没有和后台配置的对上,没有定义”段落“类型,更没有基于api的:
const isParagraph = !!item.paragraph
const [type, content] = (() => {
if (isParagraph)
return ['paragraph', item.paragraph]

  if (item['text-input'])
    return ['string', item['text-input']]

  return ['select', item.select]
})()

在app.ts类型定义中只有两种,见代码
export type TextTypeFormItem = {
label: string
variable: string
required: boolean
max_length: number
}

export type SelectTypeFormItem = {
label: string
variable: string
required: boolean
options: string[]
}

因该是提交这个版本时,这些代码没有合并起来,我测了cloud上的是可以正常运行的
@iamjoel

@hqz010 commented on GitHub (Sep 3, 2024): 在prompt.ts中以下代码处,变量类型没有和后台配置的对上,没有定义”段落“类型,更没有基于api的: const isParagraph = !!item.paragraph const [type, content] = (() => { if (isParagraph) return ['paragraph', item.paragraph] if (item['text-input']) return ['string', item['text-input']] return ['select', item.select] })() 在app.ts类型定义中只有两种,见代码 export type TextTypeFormItem = { label: string variable: string required: boolean max_length: number } export type SelectTypeFormItem = { label: string variable: string required: boolean options: string[] } 因该是提交这个版本时,这些代码没有合并起来,我测了cloud上的是可以正常运行的 @iamjoel
Author
Owner

@lorrod commented on GitHub (Apr 8, 2025):

I have faced the same issue. To reproduce use single file type input for your workflow.

@lorrod commented on GitHub (Apr 8, 2025): I have faced the same issue. To reproduce use single file type input for your workflow.
Author
Owner

@iamjoel commented on GitHub (Apr 15, 2025):

I have faced the same issue. To reproduce use single file type input for your workflow.

Fixed: https://github.com/langgenius/webapp-conversation/pull/157

@iamjoel commented on GitHub (Apr 15, 2025): > I have faced the same issue. To reproduce use single file type input for your workflow. Fixed: https://github.com/langgenius/webapp-conversation/pull/157
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/webapp-conversation#24