While uploading images (~ 48k) to labelbox , Internal Server Error

I am trying to upload images to labelbox and facing the following error. Previously got different error Failed to upload, unkown cause.
Current Error message:

Traceback (most recent call last):
  File "/home/pyler/Projects/Datasets/OnlineEvaluationResults/upload_to_labelbox.py", line 28, in <module>
    task = dataset.create_data_rows(img_paths)
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 205, in create_data_rows
    descriptor_url = self._create_descriptor_file(items)
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 433, in _create_descriptor_file
    items = [future.result() for future in as_completed(futures)]
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 433, in <listcomp>
    items = [future.result() for future in as_completed(futures)]
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/concurrent/futures/_base.py", line 438, in result
    return self.__get_result()
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/concurrent/futures/_base.py", line 390, in __get_result
    raise self._exception
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 418, in convert_item
    item = upload_if_necessary(item)
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 293, in upload_if_necessary
    item_url = self.client.upload_file(row_data)
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/site-packages/labelbox/client.py", line 329, in upload_file
    return self.upload_data(content=f.read(),
  File "/home/pyler/.local/lib/python3.10/site-packages/google/api_core/retry.py", line 349, in retry_wrapped_func
    return retry_target(
  File "/home/pyler/.local/lib/python3.10/site-packages/google/api_core/retry.py", line 191, in retry_target
    return target()
  File "/home/pyler/miniconda3/envs/torch/lib/python3.10/site-packages/labelbox/client.py", line 401, in upload_data
    raise labelbox.exceptions.LabelboxError(
labelbox.exceptions.LabelboxError: Failed to upload, message: Internal server error('Failed to upload, message: Internal server error', None)

Previous error message:

Traceback (most recent call last):
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/pyler/Projects/SourceCodes/ml-nude-detector/extras/upload_labelbox.py", line 112, in <module>
    upload_labelbox(args)
  File "/home/pyler/Projects/SourceCodes/ml-nude-detector/extras/upload_labelbox.py", line 91, in upload_labelbox
    task = dataset.create_data_rows(batch)
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 205, in create_data_rows
    descriptor_url = self._create_descriptor_file(items)
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 433, in _create_descriptor_file
    items = [future.result() for future in as_completed(futures)]
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 433, in <listcomp>
    items = [future.result() for future in as_completed(futures)]
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/concurrent/futures/_base.py", line 451, in result
    return self.__get_result()
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 418, in convert_item
    item = upload_if_necessary(item)
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/site-packages/labelbox/schema/dataset.py", line 293, in upload_if_necessary
    item_url = self.client.upload_file(row_data)
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/site-packages/labelbox/client.py", line 329, in upload_file
    return self.upload_data(content=f.read(),
  File "/home/pyler/.local/lib/python3.10/site-packages/google/api_core/retry.py", line 349, in retry_wrapped_func
    return retry_target(
  File "/home/pyler/.local/lib/python3.10/site-packages/google/api_core/retry.py", line 191, in retry_target
    return target()
  File "/home/pyler/miniconda3/envs/nude/lib/python3.10/site-packages/labelbox/client.py", line 391, in upload_data
    raise labelbox.exceptions.LabelboxError(
labelbox.exceptions.LabelboxError: Failed to upload, unknown cause('Failed to upload, unknown cause', JSONDecodeError('Expecting value: line 1 column 1 (char 0)'))

I have not find any proper ways to solve the issue or the reason to cause this issues. Would be great if I can get some suggestions / links / anything to resolve this issue.

1 Like

Hey @yakhyo, we’re going through a temporary issue with uploads. Not all uploads are working right now. We’re investigating and pushing a fix asap

1 Like

Did this solve the issue? I’m experiencing the same problem now.

the issue still exists. right now I am facing again!

Hey mvoisin hasn’t it been solved yet this problem?

labelbox.exceptions.LabelboxError: Failed to upload, unknown cause('Failed to upload, unknown cause', JSONDecodeError('Expecting value: line 1 column 1 (char 0)'))

The way to solve this isssue is re-uploading the failed cases again and again.

I see. I’ve reported the same issue here: Uploading local files JSONDecodeError

Was this issue ever resolved? We are getting the same problem with a much smaller payload (~1,000 images)

Hey,
Are you still facing this issue? Labelbox had transient problems with our imports last month, but that should be resolved.

Thanks,
Gabe