narrowvine icon indicating copy to clipboard operation
narrowvine copied to clipboard

google.protobuf.message.DecodeError: Truncated message.

Open abdullahal25 opened this issue 3 years ago • 2 comments

How can I solve this error? windows 10

Extracting Widevine Keys..
Traceback (most recent call last):
  File "C:\Python38\lib\site-packages\google\protobuf\internal\python_message.py", line 1145, in MergeFromString
    if self._InternalParse(serialized, 0, length) != length:
  File "C:\Python38\lib\site-packages\google\protobuf\internal\python_message.py", line 1198, in InternalParse
    (data, new_pos) = decoder._DecodeUnknownField(
  File "C:\Python38\lib\site-packages\google\protobuf\internal\decoder.py", line 989, in _DecodeUnknownField
    (data, pos) = _DecodeUnknownFieldSet(buffer, pos)
  File "C:\Python38\lib\site-packages\google\protobuf\internal\decoder.py", line 963, in _DecodeUnknownFieldSet
    (tag_bytes, pos) = ReadTag(buffer, pos)
  File "C:\Python38\lib\site-packages\google\protobuf\internal\decoder.py", line 192, in ReadTag
    while six.indexbytes(buffer, pos) & 0x80:
IndexError: index out of bounds on dimension 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Abdullah\Downloads\Compressed\narrowvine-main\narrowvine.py", line 247, in <module>
    getkeys("%s/encrypted_video.mp4"%TEMPORARY_PATH,LICENSE_URL)
  File "C:\Users\Abdullah\Downloads\Compressed\narrowvine-main\narrowvine.py", line 113, in getkeys
    cdm.work(pssh)
  File "C:\Users\Abdullah\Downloads\Compressed\narrowvine-main\narrowvine.py", line 108, in work
    self.getContentKey(license_request_data, license_response_data)
  File "C:\Users\Abdullah\Downloads\Compressed\narrowvine-main\narrowvine.py", line 81, in getContentKey
    responseMessage.ParseFromString(license_response_data)
  File "C:\Python38\lib\site-packages\google\protobuf\message.py", line 199, in ParseFromString
    return self.MergeFromString(serialized)
  File "C:\Python38\lib\site-packages\google\protobuf\internal\python_message.py", line 1151, in MergeFromString
    raise message_mod.DecodeError('Truncated message.')
google.protobuf.message.DecodeError: Truncated message.

abdullahal25 avatar May 16 '21 07:05 abdullahal25

maybe license url wrong or not works abod xd

mzikagate avatar May 16 '21 08:05 mzikagate

maybe license url wrong or not works abod xd

Exactly. Double check your license url.

WHTJEON avatar May 16 '21 23:05 WHTJEON