Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions report_aeroo/docs_client_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def upload(self, data, filename=False):
is_last = (i + CHUNK_LENGTH) >= data_size
payload = self._initpack("upload")
payload["params"].update({"data": chunk, "identifier": identifier, "is_last": is_last})
response = requests.post(self.url, data=json.dumps(payload), headers=HEADERS, timeout=10).json()
response = requests.post(self.url, data=json.dumps(payload), headers=HEADERS, timeout=60).json()
self._checkerror(response)
if "result" not in response:
break
Expand All @@ -117,7 +117,7 @@ def convert(self, data=False, identifier=False, in_mime=False, out_mime=False):
payload["params"].update({"in_mime": in_mime})
if out_mime:
payload["params"].update({"out_mime": out_mime})
response = requests.post(self.url, data=json.dumps(payload), headers=HEADERS, timeout=10).json()
response = requests.post(self.url, data=json.dumps(payload), headers=HEADERS, timeout=60).json()
self._checkerror(response)
return "result" in response and b64decode(response["result"]) or False

Expand All @@ -128,7 +128,7 @@ def join(self, idents, in_mime=False, out_mime=False):
payload["params"].update({"in_mime": in_mime})
if out_mime:
payload["params"].update({"out_mime": out_mime})
response = requests.post(self.url, data=json.dumps(payload), headers=HEADERS, timeout=10).json()
response = requests.post(self.url, data=json.dumps(payload), headers=HEADERS, timeout=60).json()
self._checkerror(response)
return "result" in response and b64decode(response["result"]) or False

Expand Down