cl.create_search() fails due to customer network firewall
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 299
- フォーク
- 100
- 平均マージ
- 7日 8時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
planetlabs/planet-client-python のほかの issue
-
better-testing
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
planetlabs/planet-client-python#1110 ·
-
proposal
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
planetlabs/planet-client-python#1221 ·
-
proposal
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
planetlabs/planet-client-python#1214 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
planetlabs/planet-client-python#1197 · コメント 1 件 · リアクション 1 件 ·
-
Quota API オープンai-claude
planetlabs/planet-client-python#1191 · コメント 1 件 · 担当者 1 名 ·
planetlabs/planet-client-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·