python-epo-ops-client icon indicating copy to clipboard operation
python-epo-ops-client copied to clipboard

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

Open CholoTook opened this issue 1 year ago • 2 comments

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

CholoTook avatar Mar 21 '24 23:03 CholoTook

Ignore me. I see this is a feature request.

dbolser avatar Mar 24 '24 20:03 dbolser

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

mattkeanny avatar Apr 02 '24 16:04 mattkeanny