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

Issue running chatterbotapitest.py #50

Closed
kreezire opened this issue Apr 1, 2017 · 0 comments
Closed

Issue running chatterbotapitest.py #50

kreezire opened this issue Apr 1, 2017 · 0 comments

Comments

@kreezire
Copy link

kreezire commented Apr 1, 2017

log:

C:\Users\vipaggar\Documents\code\GangsterBot\chatter-bot-api\python>python chatterbotapitest.py
bot1> Hi
bot2> Hi! Can I ask you a question?
Traceback (most recent call last):
File "chatterbotapitest.py", line 37, in
s = bot1session.think(s);
File "C:\Users\vipaggar\Documents\code\GangsterBot\chatter-bot-api\python\chatterbotapi.py", line 74, in think
return self.think_thought(thought).text
File "C:\Users\vipaggar\Documents\code\GangsterBot\chatter-bot-api\python\chatterbotapi.py", line 116, in think_thought
url_response = self.opener.open(self.bot.serviceUrl, data.encode('utf-8'))
File "C:\Users\vipaggar\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", line 435, in open
response = meth(req, response)
File "C:\Users\vipaggar\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Users\vipaggar\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", line 473, in error
return self._call_chain(*args)
File "C:\Users\vipaggar\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", line 407, in _call_chain
result = func(*args)
File "C:\Users\vipaggar\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized

@kreezire kreezire closed this as completed Apr 1, 2017
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

1 participant