ip-tools / python-epo-ops-client

Python client for EPO OPS, the European Patent Office's Open Patent Services API.
Apache License 2.0
146 stars 59 forks source link

404 Client Error: Not Found for url: https://ops.epo.org/3.2/rest-services/published-data/publication/docdb/claims #104

Open CholoTook opened 8 months ago

CholoTook commented 8 months ago

Looking here, I see the Published Claims Retrieval Service (POST)

with the prototype http://ops.epo.org/3.2/rest-services/published-data/{type}/{format}/claims

When I call:

    # Retrieve bibliography data
    response = client.published_data(
        reference_type="publication",
        input=epo_ops.models.Docdb('2024054343', 'WO', 'A2'),
        endpoint="claims",
    )

I get an exception:

404 Client Error: Not Found for url: https://ops.epo.org/3.2/rest-services/published-data/publication/docdb/claims
  File "/home/dan/Build/python-epo-ops-client/epo_ops/api.py", line 177, in _make_request
    response.raise_for_status()
  File "/home/dan/Build/python-epo-ops-client/epo_ops/api.py", line 219, in _service_request
    return self._make_request(url, data)
  File "/home/dan/Build/python-epo-ops-client/epo_ops/api.py", line 78, in published_data
    return self._service_request(
  File "/home/dan/Geromics/PatentBot2000/EPO/getting_started_with_epo_ops_and_pydantic.py", line 97, in test_published_data
    response = client.published_data(
  File "/home/dan/Geromics/PatentBot2000/EPO/getting_started_with_epo_ops_and_pydantic.py", line 164, in <module>
    data = test_published_data(client, test_docdb)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://ops.epo.org/3.2/rest-services/published-data/publication/docdb/claims
20220105

The url parameter seems to match the prototype... Not sure what I'm doing wrong

dbolser commented 8 months ago

Ignore me. I see this is a feature request.

mattkeanny commented 8 months ago

@dbolser did it work in the end? I copied your code and with the credentials set it did work fine.