You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using pywit for a couple of weeks. It was working fine till now. However, today it gave me an unexpected "bad handshake" error. I tried regenerating my access token and working with the fresh one, but the error recurs.
Code and error: client = Wit(access_token) client.message('what is the weather in london?')
---------------------------------------------------------------------------
SSLError Traceback (most recent call last)
<ipython-input-19-b32f93918d38> in <module>()
----> 1 client.message('what is the weather in london?')
/Users/...../miniconda2/lib/python2.7/site-packages/wit/wit.pyc in message(self, msg, context, n, verbose)
66 if context:
67 params['context'] = json.dumps(context)
---> 68 resp = req(self.logger, self.access_token, 'GET', '/message', params)
69 return resp
70
/Users/...../miniconda2/lib/python2.7/site-packages/wit/wit.pyc in req(logger, access_token, meth, path, params, **kwargs)
35 headers=headers,
36 params=params,
---> 37 **kwargs
38 )
39 if rsp.status_code > 200:
/Users/...../miniconda2/lib/python2.7/site-packages/requests/api.pyc in request(method, url, **kwargs)
56 # cases, and look like a memory leak in others.
57 with sessions.Session() as session:
---> 58 return session.request(method=method, url=url, **kwargs)
59
60
/Users/...../miniconda2/lib/python2.7/site-packages/requests/sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
506 }
507 send_kwargs.update(settings)
--> 508 resp = self.send(prep, **send_kwargs)
509
510 return resp
/Users/...../miniconda2/lib/python2.7/site-packages/requests/sessions.pyc in send(self, request, **kwargs)
616
617 # Send the request
--> 618 r = adapter.send(request, **kwargs)
619
620 # Total elapsed time of the request (approximately)
/Users/...../miniconda2/lib/python2.7/site-packages/requests/adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies)
504 if isinstance(e.reason, _SSLError):
505 # This branch is for urllib3 v1.22 and later.
--> 506 raise SSLError(e, request=request)
507
508 raise ConnectionError(e, request=request)
SSLError: HTTPSConnectionPool(host='api.wit.ai', port=443): Max retries exceeded with url: /message?q=what+is+the+weather+in+london%3F (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))
More info:
Python version 2.7.14
Wit Version: 5.1.0
Any ideas on why this is happening suddenly?
The text was updated successfully, but these errors were encountered:
hi @blandinw I am not sure what the problem is. Something may have changed on my side, but I haven't updated any packages or anything lately. I tried to run the code again this morning, but it gave me the same error. I will work with my system admin to find out if anything has changed at their end (although I highly doubt that). I will report back if it is resolved at my end. Thanks for responding!
I have been using pywit for a couple of weeks. It was working fine till now. However, today it gave me an unexpected "bad handshake" error. I tried regenerating my access token and working with the fresh one, but the error recurs.
Code and error:
client = Wit(access_token)
client.message('what is the weather in london?')
More info:
Python version 2.7.14
Wit Version: 5.1.0
Any ideas on why this is happening suddenly?
The text was updated successfully, but these errors were encountered: