-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Using 5.0.18 I get the following error when trying to search USPTO's ODP. I believe the cause is because ODP's finished it's beta phase their API endpoint has changed from beta-api.uspto.gov to api.uspto.gov
File "/home/soliax/.local/lib/python3.12/site-packages/patent_client/util/manager.py", line 165, in __len__
return self.count()
^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/patent_client/_sync/uspto/odp/manager.py", line 42, in count
response = api.post_search(query_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/patent_client/_sync/uspto/odp/api.py", line 57, in post_search
response = self._do_request(
^^^^^^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/patent_client/_sync/uspto/odp/api.py", line 50, in _do_request
response = self.client.request(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/httpx/_client.py", line 837, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/httpx/_client.py", line 926, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/httpx/_client.py", line 954, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/httpx/_client.py", line 991, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/httpx/_client.py", line 1027, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/hishel/_sync/_transports.py", line 213, in handle_request
regular_response = self._transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soliax/.local/lib/python3.12/site-packages/httpx/_transports/default.py", line 235, in handle_request
with map_httpcore_exceptions():
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/home/soliax/.local/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno -5] No address associated with hostname
I believe the cause is because ODP's finished it's beta phase their API endpoint has changed from beta-api.uspto.gov to api.uspto.gov
Metadata
Metadata
Assignees
Labels
No labels