n4ze3m / dialoqbase

Create chatbots with ease
https://dialoqbase.n4ze3m.com/
MIT License
1.54k stars 252 forks source link

[error] Chat Widget - White Page in Development #216

Closed brinrbc closed 4 months ago

brinrbc commented 4 months ago

thank you very much for your work! Saw this thread https://github.com/n4ze3m/dialoqbase/issues/98 with a similar problem, but I don't use docker. And as far as I'm concerned, it's different

Снимок экрана 2024-02-15 в 22 45 18

If I click on the line, the message- {"message":"Route GET:/bot/bot/d939ce0c-8479-49a4-8cde-52e30c5ac187/style not found","error":"Not Found","statusCode":404}

ChatGPT says that a request to the specified route (GET:/bot/bot/d939ce0c-8479-49a4-8cde-52e30c5ac187/style) in the web application or API cannot be processed because the corresponding resource or path is not found on the server. But what to do I can't figure out. but the playground chatbot in the app works

brinrbc commented 4 months ago

if I'm looking at the inside tab of an app "Embedding -Embed your bot on your website or blog" I see this error in the widget window

Снимок экрана 2024-02-15 в 23 10 08
n4ze3m commented 4 months ago

Hey, there's an error because the widget is missing. You need to manually build the widget and move it to the backend dist folder. I hope this documentation is helpful to you: https://dialoqbase.n4ze3m.com/guide/running-locally-for-development.html

Please let me know if you still encounter the error

brinrbc commented 4 months ago

Hey, thank you for your reply! I've gone through this guide 4 times https://dialoqbase.n4ze3m.com/guide/running-locally-for-development.html#steps-to-run-locally and I get the same problem. But maybe something in the documentation has changed? Because the other post has a slightly different setup https://github.com/n4ze3m/dialoqbase/issues/175#issuecomment-1859173314

brinrbc commented 4 months ago

Perhaps the problem lies in the fact that the mv app/ui/dist server/dist/public command does not create the server/dist/public folder (initially dist/public it is not there) and I created it manually, which may have caused the application logic not to work as it should. I tried to move it manually in accordance with the commands and got another error (white widget screen disappeared) -just a black widget screen and the inscription- {"message":"Route GET:/bot/c5da4168-c714-4e85-87f5-c8d2aa48679d?mode=iframe&no=button not found","error":"Not Found","statusCode":404}

n4ze3m commented 4 months ago

Hey, I don't know which OS you're using. Is this video helpful to you?

https://www.youtube.com/watch?v=KZBczvyKUcg

brinrbc commented 4 months ago

Hey, I don't know which OS you're using. Is this video helpful to you?

https://www.youtube.com/watch?v=KZBczvyKUcg

MacOs Intel.

Video not available This is a restricted video.

n4ze3m commented 4 months ago

Is it helpful? Just copy the files from the 'widget/dist' directory to the 'server/dist'. If there isn't a 'dist' folder in 'server', create one. Inside the 'dist' folder, create a 'public' folder and paste the copied files there. Finally, rename 'index.html' to 'bot.html.' That's all

brinrbc commented 4 months ago

Anyway, I uninstalled all the programs that can be used in the application and reinstalled everything according to the instruction https://dialoqbase.n4ze3m.com/guide/running-locally-for-development.html.

Everything worked, in the instructions there is a typo /the frontend at localhost:5173/, it should be /localhost:5123/.

But I went to /localhost:5123/ and saw a new error -

/Request failed with status code 404. Try again./

I went to http://localhost:3000/ and saw the login menu. For some reason the backend became frontend. Everything else is working. Thanks for your time! Closing.