Closed Tarkhubal closed 1 year ago
Okay it's the request module I went back a version back and that's it
Yes, I'm experiencing the same.
What I did is I replaced
method_whitelist
with allowed_methods
in
def http_adapter(backoff_factor, retries, extra_retry_codes):
"""Configures an HTTP adapter with retries and backoff."""
retry_codes = [429] + extra_retry_codes
retries = requests.packages.urllib3.util.retry.Retry(
total=retries, status_forcelist=retry_codes,
backoff_factor=backoff_factor,
allowed_methods=['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'])
adapter = requests.adapters.HTTPAdapter(max_retries=retries)
return adapter
Created a pull request: https://github.com/iamkubi/pydactyl/pull/77
I found the same issues in the requests module's github
Fixed in the 2.0.2 release
Describe the bug I have an error and I think it's because of the new version, I had never seen it before
I had the error and my program analyzed by BingAI and it told me this: It seems that this library uses urllib323 to make HTTP requests. As I said before, the method_whitelist argument was renamed to allowed_methods in urllib32 version 1.26.0.
To Reproduce The error :
Environment
Additional context I'm sure it's not my program, it worked perfectly before the new version Either it's the requests module or it's the py-dactyl module