File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ # Version 3.35.0 (2023-01-18)
4
+ ### Fixed
5
+ * Retry 520 errors when uploading files
6
+
3
7
# Version 3.34.0 (2022-12-22)
4
8
### Added
5
9
* Added `get_by_name()` method to MetadataOntology object to access both custom and reserved metadata by name.
Original file line number Diff line number Diff line change 21
21
copyright = '2021, Labelbox'
22
22
author = 'Labelbox'
23
23
24
- release = '3.34 .0'
24
+ release = '3.35 .0'
25
25
26
26
# -- General configuration ---------------------------------------------------
27
27
Original file line number Diff line number Diff line change 1
1
name = "labelbox"
2
- __version__ = "3.34 .0"
2
+ __version__ = "3.35 .0"
3
3
4
4
from labelbox.client import Client
5
5
from labelbox.schema.project import Project
Original file line number Diff line number Diff line change @@ -377,6 +377,8 @@ def upload_data(self,
377
377
raise labelbox.exceptions.InternalServerError(error_502)
378
378
elif response.status_code == 503:
379
379
raise labelbox.exceptions.InternalServerError(response.text)
380
+ elif response.status_code == 520:
381
+ raise labelbox.exceptions.InternalServerError(response.text)
380
382
381
383
try:
382
384
file_data = response.json().get("data", None)
@@ -1161,9 +1163,9 @@ def get_data_row_ids_for_global_keys(
1161
1163
'Status' contains the outcome of this job. It can be one of
1162
1164
'Success', 'Partial Success', or 'Failure'.
1163
1165
1164
- 'Results' contains a list of the fetched corresponding data row ids in the input order.
1165
- For data rows that cannot be fetched due to an error, or data rows that do not exist,
1166
- empty string is returned at the position of the respective global_key.
1166
+ 'Results' contains a list of the fetched corresponding data row ids in the input order.
1167
+ For data rows that cannot be fetched due to an error, or data rows that do not exist,
1168
+ empty string is returned at the position of the respective global_key.
1167
1169
More error information can be found in the 'Errors' section.
1168
1170
1169
1171
'Errors' contains a list of global_keys that could not be fetched, along
You can’t perform that action at this time.
0 commit comments