Skip to content

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

Open
@olepinard

Description

@olepinard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions