Problem with API - Certificate Error

  • advitam
    Asked on September 18, 2015 at 6:11 AM

    here is my error

    --------------------------------------------------------------------------- CertificateError Traceback (most recent call last) <ipython-input-44-3b2325883149> in <module>() 5 6 #reponses = jotformAPI.get_submissions(0, 0, submission_filter, "") ----> 7 reponses = jotformAPI.get_form_submissions(form_id) 8 print reponses /usr/local/lib/python2.7/site-packages/jotform.pyc in get_form_submissions(self, formID, offset, limit, filterArray, order_by) 277 params = self.create_conditions(offset, limit, filterArray, order_by) 278 --> 279 return self.fetch_url('/form/' + formID + '/submissions', params, 'GET') 280 281 def create_form_submission(self, formID, submission): /usr/local/lib/python2.7/site-packages/jotform.pyc in fetch_url(self, url, params, method) 74 req.get_method = lambda: 'PUT' 75 ---> 76 response = urllib2.urlopen(req) 77 78 if (self.__outputType == 'json'): /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.pyc in urlopen(url, data, timeout, cafile, capath, cadefault, context) 152 else: 153 opener = _opener --> 154 return opener.open(url, data, timeout) 155 156 def install_opener(opener): /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.pyc in open(self, fullurl, data, timeout) 429 req = meth(req) 430 --> 431 response = self._open(req, data) 432 433 # post-process response /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.pyc in _open(self, req, data) 447 protocol = req.get_type() 448 result = self._call_chain(self.handle_open, protocol, protocol + --> 449 '_open', req) 450 if result: 451 return result /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.pyc in _call_chain(self, chain, kind, meth_name, *args) 407 func = getattr(handler, meth_name) 408 --> 409 result = func(*args) 410 if result is not None: 411 return result /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.pyc in https_open(self, req) 1238 def https_open(self, req): 1239 return self.do_open(httplib.HTTPSConnection, req, -> 1240 context=self._context) 1241 1242 https_request = AbstractHTTPHandler.do_request_ /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.pyc in do_open(self, http_class, req, **http_conn_args) 1192 1193 try: -> 1194 h.request(req.get_method(), req.get_selector(), req.data, headers) 1195 except socket.error, err: # XXX what error? 1196 h.close() /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.pyc in request(self, method, url, body, headers) 999 def request(self, method, url, body=None, headers={}): 1000 """Send a complete request to the server.""" -> 1001 self._send_request(method, url, body, headers) 1002 1003 def _set_content_length(self, body): /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.pyc in _send_request(self, method, url, body, headers) 1033 for hdr, value in headers.iteritems(): 1034 self.putheader(hdr, value) -> 1035 self.endheaders(body) 1036 1037 def getresponse(self, buffering=False): /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.pyc in endheaders(self, message_body) 995 else: 996 raise CannotSendHeader() --> 997 self._send_output(message_body) 998 999 def request(self, method, url, body=None, headers={}): /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.pyc in _send_output(self, message_body) 848 msg += message_body 849 message_body = None --> 850 self.send(msg) 851 if message_body is not None: 852 #message_body was not a string (i.e. it is a file) and /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.pyc in send(self, data) 810 if self.sock is None: 811 if self.auto_open: --> 812 self.connect() 813 else: 814 raise NotConnected() /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.pyc in connect(self) 1210 1211 self.sock = self._context.wrap_socket(self.sock, -> 1212 server_hostname=server_hostname) 1213 1214 __all__.append("HTTPSConnection") /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.pyc in wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname) 348 suppress_ragged_eofs=suppress_ragged_eofs, 349 server_hostname=server_hostname, --> 350 _context=self) 351 352 def set_npn_protocols(self, npn_protocols): /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.pyc in __init__(self, sock, keyfile, certfile, server_side, cert_reqs, ssl_version, ca_certs, do_handshake_on_connect, family, type, proto, fileno, suppress_ragged_eofs, npn_protocols, ciphers, server_hostname, _context) 564 # non-blocking 565 raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets") --> 566 self.do_handshake() 567 568 except (OSError, ValueError): /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.pyc in do_handshake(self, block) 794 raise ValueError("check_hostname needs server_hostname " 795 "argument") --> 796 match_hostname(self.getpeercert(), self.server_hostname) 797 798 def _real_connect(self, addr, connect_ex): /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.pyc in match_hostname(cert, hostname) 267 raise CertificateError("hostname %r " 268 "doesn't match either of %s" --> 269 % (hostname, ', '.join(map(repr, dnsnames)))) 270 elif len(dnsnames) == 1: 271 raise CertificateError("hostname %r " CertificateError: hostname 'api.jotform.com' doesn't match either of 'submit.jotform.com', 'www.submit.jotform.com'

    thanks

  • Jan
    Replied on September 18, 2015 at 11:51 AM

    Based on this thread, it seems that the issue is already fixed at September 18, 2015 - 9:16 AM. Let us know if you're still having issues with the service.

     

    Thank you.

  • advitam
    Replied on September 18, 2015 at 12:46 PM

    yes,

     

    thanks

  • Ben
    Replied on September 18, 2015 at 4:06 PM

    I will take your "yes" as a confirmation of the issue being resolved :)

    If I have misunderstood it, do feel free to let us know, otherwise do have a nice day and let us know if you happen to have any further issues or any questions and we would be happy to assist with the same :)