Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

cl.create_search() fails due to customer network firewall

Open
#1,104 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start at the cl.create_search() entry point and trace the FetchBundlesSpecError path, comparing it with the manual JSON request to the Data API. Reproduce the failure in the reported Windows, Python 3.10, Planet 2.15.0 environment and verify that create_search() returns a dictionary when the network restriction is handled.

Written by the indexing model from the issue text.

Description

bug

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

Dominant language
Python
Stars
300
Forks
100
Avg merge
9d 22h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from planetlabs/planet-client-python

All issues in planetlabs/planet-client-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.