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

App is unavailable #51

Open
Putnug1122 opened this issue Mar 17, 2024 · 7 comments
Open

App is unavailable #51

Putnug1122 opened this issue Mar 17, 2024 · 7 comments

Comments

@Putnug1122
Copy link

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

@Abdelilah37
Copy link

same with me

1 similar comment
@Rex-L
Copy link

Rex-L commented Apr 1, 2024

same with me

@Judy-pic
Copy link

Judy-pic commented Apr 3, 2024

any one know the reason?

@Rex-L
Copy link

Rex-L commented Apr 3, 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

@Judy-pic
Copy link

Judy-pic commented Apr 3, 2024

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

@Rex-L
Copy link

Rex-L commented Apr 3, 2024

image You'll see resson

@Judy-pic
Copy link

Judy-pic commented 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?

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

4 participants