Just getting started, unsuccessfully attempting to run a ready notebook

Hi, I looked at your essay at:

And at this point, when attempting to run the code, it fails:

image

I’ve put the error below, and I’d really appreciate any advice because I want to test how the product performs generally before incorporating my own project into it.

The Error:

ERROR:labelbox.client:Unknown error: (“Connection broken: InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read)”, InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read))

ValueError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/urllib3/response.py in _update_chunk_length(self)
760 try:
→ 761 self.chunk_left = int(line, 16)
762 except ValueError:

ValueError: invalid literal for int() with base 16: b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’

During handling of the above exception, another exception occurred:

InvalidChunkLength Traceback (most recent call last)
20 frames
InvalidChunkLength: InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read)

During handling of the above exception, another exception occurred:

ProtocolError Traceback (most recent call last)
ProtocolError: (“Connection broken: InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read)”, InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read))

During handling of the above exception, another exception occurred:

ChunkedEncodingError Traceback (most recent call last)
ChunkedEncodingError: (“Connection broken: InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read)”, InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read))

During handling of the above exception, another exception occurred:

NetworkError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/labelbox/client.py in execute(self, query, params, data, files, timeout, experimental)
184 except requests.exceptions.RequestException as e:
185 logger.error(“Unknown error: %s”, str(e))
→ 186 raise labelbox.exceptions.NetworkError(e)
187 except Exception as e:
188 raise labelbox.exceptions.LabelboxError(

NetworkError: (“Connection broken: InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read)”, InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read))(‘(“Connection broken: InvalidChunkLength(got length b'\\x1f\\x8b\\x08\\x00\\x00\\x00\\x00\\x00\\x00\\x03\\x84\\xce\\xbd\\n', 0 bytes read)”, InvalidChunkLength(got length b'\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n', 0 bytes read))’, ChunkedEncodingError(ProtocolError(“Connection broken: InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read)”, InvalidChunkLength(got length b’\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\x84\xce\xbd\n’, 0 bytes read))))

Hi @3danio ,

I have just tested the notebook in question and was able to upload the video.

1 - Make sure you have the right API key
2 - Check if the video is present in the Notebook itself :

You can use the link directly to test too :

If this persist can you provide your org id please (Workspace settings → Workspace id) ?

Let me know how it goes.

Many thanks,
Paul Tancré
Labelbox Support

Hi, now it works:) thanks! I really don’t know why it didn’t earlier. I added also before the API_KEY of my account, maybe it took some time to accept it?

Something was misinterpreted and caused the error, regardless glad you made it!

1 Like