cl.create_search() fails due to customer network firewall
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
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
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from planetlabs/planet-client-python
-
better-testing
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
planetlabs/planet-client-python#1110 ·
-
proposal
Difficulty 3/5 1-2 days Newbie friendliness 65/100
planetlabs/planet-client-python#1221 ·
-
proposal
Difficulty 3/5 1-2 days Newbie friendliness 57/100
planetlabs/planet-client-python#1214 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
planetlabs/planet-client-python#1197 · 1 comment · 1 reaction ·
-
Quota APIMay be free again @asonnenschein claimed this 415 days ago, and no pull request is open. Openai-claude
planetlabs/planet-client-python#1191 · 1 comment · 1 assignee ·
All issues in planetlabs/planet-client-python
Similar issues
-
upstream update
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conan-io/conan-center-index#31098 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
john-kurkowski/tldextract#382 ·
-
comp/tools duplicate P2 sweeper:risk-compatibility tool/mcp type/bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
NousResearch/hermes-agent#132042 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepset-ai/haystack#13092 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
feder-cr/invisible_playwright_mcp#1408 ·
Maintainers usually reply within 1 day