cl.create_search() fails due to customer network firewall
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
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
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di planetlabs/planet-client-python
-
better-testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
planetlabs/planet-client-python#1110 ·
-
proposal
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
planetlabs/planet-client-python#1221 ·
-
proposal
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
planetlabs/planet-client-python#1214 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
planetlabs/planet-client-python#1197 · 1 commento · 1 reazione ·
-
Quota API Apertaai-claude
planetlabs/planet-client-python#1191 · 1 commento · 1 assegnatario ·
Tutte le issue di planetlabs/planet-client-python
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·