Comments (3)
Tried to create my own chatbot. Created successfully but when I try to use it, I get an error 500. Console shows the following output. I've highlighted the error line:
webwhiz-frontend-1 | 172.26.0.1 - - [04/Sep/2023:14:19:23 +0000] "POST /api/chatbot/session/ HTTP/1.1" 200 24 "http://localhost:3030/app/edit-chatbot/64f5e7620b7b1e09450bcc30/?step=chatbot" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" "-"
webwhiz-python_worker-1 | [2023-09-04 14:19:23,991: INFO/MainProcess] Task worker.get_top_n_chunks[4c2cead6-06c1-42bf-96b4-56f2c7e5d412] received
webwhiz-mongodb-1 | {"t":{"$date":"2023-09-04T14:19:23.995+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.26.0.6:37200","uuid":{"uuid":{"$uuid":"cb79280d-ac57-4a0b-b23f-911a7c68c57d"}},"connectionId":11,"connectionCount":11}}
webwhiz-mongodb-1 | {"t":{"$date":"2023-09-04T14:19:23.996+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn11","msg":"client metadata","attr":{"remote":"172.26.0.6:37200","client":"conn11","doc":{"driver":{"name":"PyMongo","version":"4.3.3"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"6.5.0-060500-generic"},"platform":"CPython 3.8.17.final.0"}}}
webwhiz-mongodb-1 | {"t":{"$date":"2023-09-04T14:19:23.997+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.26.0.6:37206","uuid":{"uuid":{"$uuid":"53a6f8fe-fe02-4878-9d54-e6f43848d123"}},"connectionId":12,"connectionCount":12}}
webwhiz-mongodb-1 | {"t":{"$date":"2023-09-04T14:19:23.998+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn12","msg":"client metadata","attr":{"remote":"172.26.0.6:37206","client":"conn12","doc":{"driver":{"name":"PyMongo","version":"4.3.3"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"6.5.0-060500-generic"},"platform":"CPython 3.8.17.final.0"}}}
webwhiz-mongodb-1 | {"t":{"$date":"2023-09-04T14:19:23.998+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.26.0.6:37218","uuid":{"uuid":{"$uuid":"9b7f258e-02dd-4a9d-abd7-ca3627bb0f84"}},"connectionId":13,"connectionCount":13}}
webwhiz-mongodb-1 | {"t":{"$date":"2023-09-04T14:19:23.998+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn13","msg":"client metadata","attr":{"remote":"172.26.0.6:37218","client":"conn13","doc":{"driver":{"name":"PyMongo","version":"4.3.3"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"6.5.0-060500-generic"},"platform":"CPython 3.8.17.final.0"}}}
webwhiz-mongodb-1 | {"t":{"$date":"2023-09-04T14:19:23.998+00:00"},"s":"I", "c":"NETWORK", "id":6788700, "ctx":"conn13","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":0}}
webwhiz-python_worker-1 | [2023-09-04 14:19:24,011: INFO/ForkPoolWorker-1] Task worker.get_top_n_chunks[4c2cead6-06c1-42bf-96b4-56f2c7e5d412] succeeded in 0.01822942600119859s: '[{"chunkId": {"$oid": "64f5e766a846b7bc00fa60aa"}, "similarity": 0.7400147565115206}]'
webwhiz-frontend-1 | 172.26.0.1 - - [04/Sep/2023:14:19:24 +0000] "POST /api/chatbot/answer/?debug=true HTTP/1.1" 500 52 "http://localhost:3030/app/edit-chatbot/64f5e7620b7b1e09450bcc30/?step=chatbot" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" "-"
**webwhiz-web-1 | [Nest] 1 - 09/04/2023, 2:19:24 PM ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'content')**
webwhiz-web-1 | TypeError: Cannot read properties of undefined (reading 'content')
webwhiz-web-1 | at getCtxBlock (/dist/knowledgebase/chatbot/openaiChatbotService.js:113:49)
webwhiz-web-1 | at OpenaiChatbotService.getChatGptPrompt (/dist/knowledgebase/chatbot/openaiChatbotService.js:118:32)
webwhiz-web-1 | at OpenaiChatbotService.getAiAnswer (/dist/knowledgebase/chatbot/openaiChatbotService.js:168:31)
webwhiz-web-1 | at ChatbotService.getAnswer (/dist/knowledgebase/chatbot/chatbot.service.js:167:56)
webwhiz-web-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
webwhiz-frontend-1 | 172.26.0.1 - - [04/Sep/2023:14:19:31 +0000] "GET /static/js/main.e33f7a59.chunk.js.map HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" "-"
webwhiz-frontend-1 | 172.26.0.1 - - [04/Sep/2023:14:19:31 +0000] "GET /static/js/2.fe7de7e8.chunk.js.map HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" "-"
webwhiz-frontend-1 | 172.26.0.1 - - [04/Sep/2023:14:19:31 +0000] "GET /static/js/main.e33f7a59.chunk.js.map HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" "-"
webwhiz-python_worker-1 | [2023-09-04 14:19:34,339: INFO/MainProcess] Task worker.get_top_n_chunks[c0434740-a23f-477b-a6c6-c4563df49eb3] received
webwhiz-python_worker-1 | [2023-09-04 14:19:34,345: INFO/ForkPoolWorker-1] Task worker.get_top_n_chunks[c0434740-a23f-477b-a6c6-c4563df49eb3] succeeded in 0.00395020299765747s: '[{"chunkId": {"$oid": "64f5e766a846b7bc00fa60aa"}, "similarity": 0.753464979419034}]'
webwhiz-frontend-1 | 172.26.0.1 - - [04/Sep/2023:14:19:34 +0000] "POST /api/chatbot/answer/?debug=true HTTP/1.1" 500 52 "http://localhost:3030/app/edit-chatbot/64f5e7620b7b1e09450bcc30/?step=chatbot" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" "-"
webwhiz-web-1 | [Nest] 1 - 09/04/2023, 2:19:34 PM ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'content')
webwhiz-web-1 | TypeError: Cannot read properties of undefined (reading 'content')
webwhiz-web-1 | at getCtxBlock (/dist/knowledgebase/chatbot/openaiChatbotService.js:113:49)
webwhiz-web-1 | at OpenaiChatbotService.getChatGptPrompt (/dist/knowledgebase/chatbot/openaiChatbotService.js:118:32)
webwhiz-web-1 | at OpenaiChatbotService.getAiAnswer (/dist/knowledgebase/chatbot/openaiChatbotService.js:168:31)
webwhiz-web-1 | at ChatbotService.getAnswer (/dist/knowledgebase/chatbot/chatbot.service.js:167:56)
webwhiz-web-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
from webwhiz.
Hi @willcrobinson,
Thank you for reporting this issue.
It is now working because the demo chatbots are on the WebWhiz DB and not available with your setup.
I'll remove the demos for self-hosted versions.
Are you facing any issues with creating a new chatbot or using the chatbot you've created?
from webwhiz.
Creating a new chatbot seems to work fine. Whenever I try to use the chatbot, I get the errors listed here: #70 (comment)
Going to try to set up a fresh copy of Webwhiz on another laptop and see if I have the same issues there.
from webwhiz.
Related Issues (20)
- Ability to see the amount of tokens used by each bot
- Issue with widget and Public link HOT 14
- Improve Sitecrawl to Exclude paths
- Unable to create chatbot, was working before HOT 1
- PDF contains data but chatbot does not retrieve it - see pic HOT 1
- Content being ignored by Crawlee
- Upload PDF HOT 7
- Content fails to be crawled
- Chatbot submit button issue
- Add confirmation alert before deleting a chatbot HOT 1
- Render Markdown HOT 2
- Webwhiz Configuration help needed HOT 2
- Add option to choose multiple parsers
- Option to load pages from sitemap
- Configure crawling interval
- custom domain support HOT 1
- Correct custom data title and description
- Fix share chatbot HTML validation issues HOT 1
- show the name of uplaoded file HOT 1
- Ability to allocate/assign a set amount of tokens for each client's bot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webwhiz.