WHTJEON / narrowvine

The Ultimate Widevine Content Ripper (KEY Extract + Download + Decrypt)
MIT License
97 stars 49 forks source link

google.protobuf.message.DecodeError: Truncated message. #8

Open abdullahal25 opened 3 years ago

abdullahal25 commented 3 years ago

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.
mzikagate commented 3 years ago

maybe license url wrong or not works abod xd

WHTJEON commented 3 years ago

maybe license url wrong or not works abod xd

Exactly. Double check your license url.