Dear Bisque Support Team,
I am using Bisque API on my web-interface written in Python2.7. The server is a RaspberryPi with raspstill camera. What Bisque API does is uploads the pictures taken by raspistill camera to Bisque.
The problem is that once the internet connection is broken, the picture cannot be uploaded and the system is stuck (see the log messages below).
Is there anything I can do in order to make the system just not upload the picture when there is no internet, and continue the operation?
This is the log messages:
1] Starting new HTTP connection (1): bisque.iplantcollaborative.org
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pi/phenotiki/env/raspistillWeb/raspistillweb/views.py", line 805, in button_loop
take_photo(filename)
File "/home/pi/phenotiki/env/raspistillWeb/raspistillweb/views.py", line 579, in take_photo
bqsession = setbasicauth(app_settings.bisque_root_url, app_settings.bisque_user, app_settings.bisque_pswd)
File "/home/pi/phenotiki/env/raspistillWeb/raspistillweb/views.py", line 730, in setbasicauth
bqsession.init_cas(username, password, bisque_root=bisquehost, create_mex=False)
File "build/bdist.linux-armv7l/egg/bqapi/comm.py", line 416, in init_cas
caslogin (self.c, bisque_root + "/auth_service/login", user, pwd)
File "build/bdist.linux-armv7l/egg/bqapi/casauth.py", line 14, in caslogin
cas_page = session.get(caslogin, params = params)
File "/home/pi/phenotiki/env/local/lib/python2.7/site-packages/requests/sessions.py", line 477, in get
return self.request('GET', url, **kwargs)
File "/home/pi/phenotiki/env/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/home/pi/phenotiki/env/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/home/pi/phenotiki/env/local/lib/python2.7/site-packages/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))
All the Best,
Aliaksei
--
You received this message because you are subscribed to the Google Groups "bisque bioimage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bisque-bioimage+unsubscribe@googlegroups.com.
To post to this group, send email to bisque-bioimage@googlegroups.com.
Visit this group at https://groups.google.com/group/bisque-bioimage.
For more options, visit https://groups.google.com/d/optout.