timeout during login-in not shown to user
If user gets login timeout, the login widget returns to the initial state, but no error message is shown.
2014-03-25 11:36:19,660 - DEBUG - L#196 : leap.bitmask.provider.providerbootstrapper:_download_provider_info() - Requesting for provider.json... uri: https://api.dev.bitmask.net:4430/provider.json, verify: /home/kali/.config/leap/providers/dev.bitmask.net/keys/ca/cacert.pem, headers: {'if-modified-since': 'Thu Mar 13 18:03:59 2014 GMT'}
2014-03-25 11:36:34,967 - DEBUG - L#53 : leap:write() - 2014-03-25 11:36:34-0400 [-] Signaling prov_download_provider_info :: {'passed': False, 'error': "(, 'Connection to api.dev.bitmask.net timed out. (connect timeout=15)')"}
2014-03-25 11:36:34,968 - ERROR - L#1010 : leap.bitmask.gui.mainwindow:_load_provider_config() - (, 'Connection to api.dev.bitmask.net timed out. (connect timeout=15)')
2014-03-25 11:36:34,974 - DEBUG - L#53 : leap:write() - 2014-03-25 11:36:34-0400 [-] Unhandled Error
2014-03-25 11:36:34,975 - DEBUG - L#53 : leap:write() - Traceback (most recent call last):
2014-03-25 11:36:34,975 - DEBUG - L#53 : leap:write() - File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
2014-03-25 11:36:34,976 - DEBUG - L#53 : leap:write() - self.__bootstrap_inner()
2014-03-25 11:36:34,976 - DEBUG - L#53 : leap:write() - File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
2014-03-25 11:36:34,976 - DEBUG - L#53 : leap:write() - self.run()
2014-03-25 11:36:34,977 - DEBUG - L#53 : leap:write() - File "/usr/lib/python2.7/threading.py", line 763, in run
2014-03-25 11:36:34,977 - DEBUG - L#53 : leap:write() - self.__target(*self.__args, **self.__kwargs)
2014-03-25 11:36:34,977 - DEBUG - L#53 : leap:write() - --- ---
2014-03-25 11:36:34,978 - DEBUG - L#53 : leap:write() - File "/home/kali/Virtualenvs/leap-bitmask/lib/python2.7/site-packages/twisted/python/threadpool.py", line 191, in _worker
2014-03-25 11:36:34,978 - DEBUG - L#53 : leap:write() - result = context.call(ctx, function, *args, **kwargs)
2014-03-25 11:36:34,978 - DEBUG - L#53 : leap:write() - File "/home/kali/Virtualenvs/leap-bitmask/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
2014-03-25 11:36:34,978 - DEBUG - L#53 : leap:write() - return self.currentContext().callWithContext(ctx, func, *args, **kw)
2014-03-25 11:36:34,979 - DEBUG - L#53 : leap:write() - File "/home/kali/Virtualenvs/leap-bitmask/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
2014-03-25 11:36:34,979 - DEBUG - L#53 : leap:write() - return func(*args,**kw)
2014-03-25 11:36:34,979 - DEBUG - L#53 : leap:write() - File "/home/kali/leap/leap_client/src/leap/bitmask/provider/providerbootstrapper.py", line 198, in _download_provider_info
2014-03-25 11:36:34,980 - DEBUG - L#53 : leap:write() - headers=headers, timeout=REQUEST_TIMEOUT)
2014-03-25 11:36:34,980 - DEBUG - L#53 : leap:write() - File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/requests/sessions.py", line 373, in get
2014-03-25 11:36:34,980 - DEBUG - L#53 : leap:write() - return self.request('GET', url, **kwargs)
2014-03-25 11:36:34,982 - DEBUG - L#53 : leap:write() - File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/requests/sessions.py", line 361, in request
2014-03-25 11:36:34,983 - DEBUG - L#53 : leap:write() - resp = self.send(prep, **send_kwargs)
2014-03-25 11:36:34,983 - DEBUG - L#53 : leap:write() - File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/requests/sessions.py", line 464, in send
2014-03-25 11:36:34,983 - DEBUG - L#53 : leap:write() - r = adapter.send(request, **kwargs)
2014-03-25 11:36:34,984 - DEBUG - L#53 : leap:write() - File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/requests/adapters.py", line 365, in send
2014-03-25 11:36:34,984 - DEBUG - L#53 : leap:write() - raise Timeout(e)
2014-03-25 11:36:34,984 - DEBUG - L#53 : leap:write() - requests.exceptions.Timeout: (, 'Connection to api.dev.bitmask.net timed out. (connect timeout=15)')
(from redmine: created on 2014-03-25, closed on 2014-06-02, relates #5424 (closed), relates #4629 (closed))