We are using travel planning sample bot for practicing the chatbot implementation with sdkApp.
we chose HS256 algorithm and jwtURL as “http://localhost:3000/api/users/sts”. we are getting following error in node console. browser is displaying “respond with a resource” message.
Failed to lookup view “error” in views directory “D:\dev\SDKApp\sdk”.
Even we tried with “http://demo.kore.net/users/sts” but no luck. This time browser is displaying follwoing message “Cannot GET /users/sts”
Can you please help me in resolving this issue.
Thanks in advance
Hello @siripurapurahul,
Have you started the SDK App? You will need to open command prompt
cd “D:\dev\SDKApp” (Hope this is where you have the SDKApp unzipped)
npm install (If you have not done this step before)
node startServer (Ensure there is startserver.js)
After this you should be able to get rid of the “Cannot GET /users/sts” message.
Hope you have referred to the thread Facing issue while integrating bot with web/mobile client channel
If you face any further problem, please post in that thread.
1 Like
@siripurapurahul
At a first glance nothing looks too different from the set up I have. There could be a possibility that some resources are missing.
Also, the error
Failed to lookup view “error” in views directory “D:\dev\SDKApp\sdk”.
should not stop you from connecting to the bot. This is just a route error in node.js.
I just did the entire set up again to ensure nothing is amiss and I do not see any problem with our latest SDKApp and WebSDK.
- Downloaded SDKApp from as mentioned in web sdk tutorial.
- Downloaded zip of Kore web SDK from GitHub.
- Unzipped the contents of SDK into UI directory of SDK app
- npm install at the SDKApp diretory.
- node startserver
- index.html set “isAnonymous”: true
- Updated the bot name, id, client secret, client id etc.
- Served the index.html through http://localhost:3000/UI/
- I am able to connect to the bot.
Please try the above and let us know.
Note - You can check if JWT service is running (from SDKApp) properly by serving the JWT URL directly.
If the above does not work for you, please let us know if you see any error under F12 (developer console - assuming chrome) > Console/ Network while trying to connect to the bot/ serving the index.html.
3 Likes
@swagata.sengupta Thanks a lot for the explanation given by you it solved all my issues, I will get back to you if I face anymore.