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

cl.create_search() fails due to customer network firewall #1104

Open
olepinard opened this issue Mar 6, 2025 · 2 comments
Open

cl.create_search() fails due to customer network firewall #1104

olepinard opened this issue Mar 6, 2025 · 2 comments
Labels

Comments

@olepinard
Copy link

Expected behavior
Run cl.create_search() and return a dictionary to make a search to planets Data API

Actual behavior (describe the problem)
The program errors out with FetchBundlesSpecError: Unable to fetch spec from API to generate valid item types and bundles. Please retry!
They are able to access all of our other APIs so there seems to be a weird issue with the specific call for creating a search

Workaround
Right now we just manually create the json to create the search with the request package and data API endpoint

Minimum, Complete, Viable Code Sample

search_name = 'masset_point_small'

async with Session() as sess:
    cl = sess.client('data')
    request = await cl.create_search(name=search_name,search_filter=combined_filter, item_types=item_types)
    request['id']

Environment Information

  • Operation System Information (python -c "import platform; print(platform.platform())")
    Windows-10-10.0.22631-SP0
  • Python version (python -c "import sys; print(sys.version.replace('\n', ' '))")
    3.10.15 | packaged by Anaconda, Inc. | (main, Oct 3 2024, 07:22:19) [MSC v.1929 64 bit (AMD64)]
  • Planet package version (planet -v)
    planet, version 2.15.0

Installation Method
*conda

@olepinard olepinard added the bug label Mar 6, 2025
@stephenhillier
Copy link
Contributor

They are able to access all of our other APIs

@olepinard is there any other config required to get the other requests to work (e.g. proxy config)?

@olepinard
Copy link
Author

No, my understanding is that making the request via
`# Send the POST request to the API quick search endpoint
res = session.post(URL, json=request)

Assign the response to a variable

results = res.json()["features"]
`
works for them. Its only via the SDK that they run into problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants