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
Hello! I am using the http2 function in httpx to connect to some services
The service has binary encrypted data, and the content-length of the response represents the length I need to decrypt
And this caused the InvalidBodyLengthError in the h2 module
File "C:\Users\20191121\AppData\Local\Programs\Python\Python36\lib\site-packages\h2\stream.py", line 1337, in _track_content_length raise InvalidBodyLengthError(expected, actual) h2.exceptions.InvalidBodyLengthError: InvalidBodyLengthError: Expected 116 bytes, received 132
I tried to annotate the line of code in h2\stream.py, and it working, so I am curious why need to raise the error?
If it is to check for security, should you add parameters so that users can bypass the check?
The text was updated successfully, but these errors were encountered:
Hello! I am using the http2 function in httpx to connect to some services
The service has binary encrypted data, and the content-length of the response represents the length I need to decrypt
And this caused the InvalidBodyLengthError in the h2 module
File "C:\Users\20191121\AppData\Local\Programs\Python\Python36\lib\site-packages\h2\stream.py", line 1337, in _track_content_length raise InvalidBodyLengthError(expected, actual)
h2.exceptions.InvalidBodyLengthError: InvalidBodyLengthError: Expected 116 bytes, received 132
I tried to annotate the line of code in
h2\stream.py
, and it working, so I am curious why need to raise the error?If it is to check for security, should you add parameters so that users can bypass the check?
The text was updated successfully, but these errors were encountered: