Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 HTTP Error in Search #54

Closed
brendasalenave opened this issue Jul 21, 2022 · 1 comment
Closed

404 HTTP Error in Search #54

brendasalenave opened this issue Jul 21, 2022 · 1 comment

Comments

@brendasalenave
Copy link

I am trying to use the python-epo-ops-client library to perform a search; however, for some searches (not all), I am getting a 404 response status.

Here is a minimal example of a situation where this error occurs:

import epo_ops

key = '****'
consumer_secret = '*******'

client = epo_ops.Client(key=key, secret=consumer_secret)  # Instantiate client

query = '(txt all "water" AND "derailleur" AND "reuse") AND (cl all "E03B")'

response = client.published_data_search(
    cql=query, 
    range_begin=1,
    range_end=100
)

I am using Python 3.9 and python_epo_ops_client version 4.0.0.

Does anyone know how to fix this or indicate what I am doing wrong?

@gsong
Copy link
Member

gsong commented Aug 29, 2022

@brendasalenave You can try the API directly at https://developers.epo.org/ops-v3-2/apis/get/published-data/search to verify that your query works. I get the same 404 result when I test it there, so you must reformulate your query.

@gsong gsong closed this as completed Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants