Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

cl.create_search() fails due to customer network firewall

Aperta
#1,104 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
299
Fork
100
Merge medio
7g 8h
PR unite (30g)
2

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di planetlabs/planet-client-python

Tutte le issue di planetlabs/planet-client-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.