Closed christophkormesser closed 6 years ago
Are you using Windows?
Yes, Windows 10.
Ok I think it may be an issue with the name of the USERNAME and PASSWORD env vars. I believe those names collide with the windows environment.
One thing you can do is update those vars in .env to something else BM_USERNAME and BM_PASSWORD, then update all calls in the source code from process.env.USERNAME and process.env.PASSWORD to process.env.BM_USERNAME, process.env.BM_PASSWORD
Id this is too complicated, I'll get to it on Tuesday
Thank you for the response I'll try it in a few days!
So I changed the variables to BM_USERNAME, BM_PASSWORD in the .env file and the index.js but the same error occurred. (also tried changing WORKSPACE_ID to BM_WORKSPACE_ID)
@christophkormesser im wrong. after viewing the code, i see i was confusing this project with another. all in all, the variables in .env
should work as expected on Windows. all in all, revert the changes i noted above. apologies for the confusion.
that being, the case, we still dont know why you're experiencing issues.
once you revert to the original .env
var names, can you paste that here (with your passwords masked out)
also please supply you node.js and npm version
npm version:
node.js:
.env file:
index.js:
@christophkormesser
i'm a bit stumped why that is not working for you, given it is essentially just calling the conversation sdk directly. One way to avoid any potential environment and/or .env
issue is to replace process.env.USERNAME
and process.env.PASSWORD
with the actual username and password strings. This is clearly not recommended for a production system, but should be perfectly fine for purposes of the course
Also, with respect to env vars, one more thing to to try... Check the value of the actual environment variable. Any value in the actual environment will override what is in .env
; You can check with echo %USERNAME%
and echo %PASSWORD%
Hello @cdimascio , I am currently trying to recreate the chatbot, but fail at module 41.
This is my error:
I am very certain that I used the right credentials and workspace id. Is there an issue with the url or the new name of watson conversation to watson assistant? (BTW I do not really have any programming skills).
Thanks in advance!