You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialization succeeds, producing the byte string:
b"d1:ad12:implied_porti1ee1:q12:AnnouncePeere".
However, deserialization fails with the error:
CustomDecode("invalid type: integer 1, expected a boolean").
The problem seems to be that the Bencode protocol parses boolean values as i64 (integers), but the deserialization logic for the implied_port field only considers boolean values.
Should the deserialization logic be modified to also handle integer cases?
The text was updated successfully, but these errors were encountered:
Hi!
Recently, I use bendy to parse bencode, defined the following struct:
Serialization succeeds, producing the byte string:
b"d1:ad12:implied_porti1ee1:q12:AnnouncePeere".
However, deserialization fails with the error:
CustomDecode("invalid type: integer 1, expected a boolean").
The problem seems to be that the Bencode protocol parses boolean values as i64 (integers), but the deserialization logic for the implied_port field only considers boolean values.
Should the deserialization logic be modified to also handle integer cases?
The text was updated successfully, but these errors were encountered: