# 超过 1000 会报错 >>> client.get_domains(limit=1001) Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/godaddypy/client.py", line 105, in _validate_response_success response.raise_for_status() File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 422 Client Error: Unprocessable Entity for url: https://api.godaddy.com/v1/domains?limit=1001
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.11/site-packages/godaddypy/client.py", line 149, in get_domains data = self._get_json_from_response(url, params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/godaddypy/client.py", line 75, in _get_json_from_response return self._request_submit(requests.get, url=url, json=json, **kwargs).json() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/godaddypy/client.py", line 97, in _request_submit self._validate_response_success(resp) File "/usr/local/lib/python3.11/site-packages/godaddypy/client.py", line 107, in _validate_response_success raise BadResponse(response.json()) godaddypy.client.BadResponse: Response Data: {'code': 'VALUE_OVER', 'message': 'Limit must have a value no greater than 1000'}