diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_webpage_generator.py b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_webpage_generator.py index dabcfe2..b5e789d 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_webpage_generator.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_webpage_generator.py @@ -294,6 +294,8 @@ class HttpUploader: def _upload_files(self, files: list, force: bool = False) -> None: try: import requests as _requests + import urllib3 + urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) except ImportError: logger.warning("HttpUploader: 'requests' library not installed") return @@ -327,13 +329,16 @@ class HttpUploader: def _do_cleanup(self) -> None: try: import requests as _requests + import urllib3 + urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) except ImportError: return try: r = _requests.post( - self._url, - data={"action": "cleanup"}, - timeout=self._timeout, + self._url, + data={"action": "cleanup"}, + timeout=self._timeout, + verify=False, ) logger.info(f"HttpUploader cleanup: {r.text[:120]}") # Forget mtime records for ptycho files so they get re-uploaded