STAC Job Manager: item_id must be string
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Bắt đầu từ dòng được liên kết trong openeo/extra/job_management/stac_job_db.py và lần theo initialize_from_df qua persist đến bước upload item. So sánh hành vi của chỉ mục fallback với yêu cầu ID dạng chuỗi của STAC Item; được xem là hoàn tất khi policy đã chọn được nêu rõ và đường dẫn tạo item không còn gửi ID số nguyên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I faced an issue recently where I got the following error when creating a STAC job database. The collection is created as expected, but there is an error when creating the item if a field named "item_id" is not available in my pandas dataframe.
Expecting HTTP status to be any of [200, 201, 202] but received 500 - Internal Server Error, request method=POST
response body:
{"code":"ValidationError","description":"1 validation error for Item\nid\n Input should be a valid string [type=string_type, input_value=0, input_type=int]\n For further information visit https://errors.pydantic.dev/2.11/v/string_type"}
Expecting HTTP status to be any of [200, 201, 202] but received 500 - Internal Server Error, request method=POST
response body:
{"code":"ValidationError","description":"1 validation error for Item\nid\n Input should be a valid string [type=string_type, input_value=500, input_type=int]\n For further information visit https://errors.pydantic.dev/2.11/v/string_type"}
Traceback (most recent call last):
File "/data/users/Private/pratixa/nifi/cropsar_px_nifi/create_job_database.py", line 151, in <module>
main()
File "/data/users/Private/pratixa/nifi/cropsar_px_nifi/create_job_database.py", line 140, in main
job_db.initialize_from_df(jobs_df, on_exists='error')
File "/home/pratixa/.conda/envs/nifi/lib/python3.12/site-packages/openeo/extra/job_management/stac_job_db.py", line 106, in initialize_from_df
self.persist(df)
File "/home/pratixa/.conda/envs/nifi/lib/python3.12/site-packages/openeo/extra/job_management/stac_job_db.py", line 211, in persist
self._upload_items_bulk(self.collection_id, all_items)
File "/home/pratixa/.conda/envs/nifi/lib/python3.12/site-packages/openeo/extra/job_management/stac_job_db.py", line 247, in _upload_items_bulk
self._ingest_bulk(chunk)
File "/home/pratixa/.conda/envs/nifi/lib/python3.12/site-packages/openeo/extra/job_management/stac_job_db.py", line 230, in _ingest_bulk
_check_response_status(response, _EXPECTED_STATUS_POST)
File "/home/pratixa/.conda/envs/nifi/lib/python3.12/site-packages/openeo/extra/job_management/stac_job_db.py", line 311, in _check_response_status
response.raise_for_status()
File "/home/pratixa/.conda/envs/nifi/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://stac-api-dev.vgt.vito.be/collections/cropsar2d_jobdb_test05082025/bulk_items
In case the item_id is not available, it should consider the index as item_id, but then it would be an integer. https://github.com/Open-EO/openeo-python-client/blob/66499f9da31fb967411efb09e0ecd9075caf2e6f/openeo/extra/job_management/stac_job_db.py#L63
So, in this case, shouldn't we mention it to mandatorily have an item_id column that is string or shouldn't they we adapted to take it as string?
- Ngôn ngữ chính
- Python
- Star
- 219
- Fork
- 58
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Open-EO/openeo-python-client
-
JupyterLite supportĐang mởauth feature request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Open-EO/openeo-python-client#953 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stop providing conda packages?Đang mởcollect feedback
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Open-EO/openeo-python-client#952 · 10 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Further decouple CubeMetadata from CollectionMetadata, and properly apply spatio-temporal filteringCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Open-EO/openeo-python-client#949 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
asset download: support file:local_path to determine target file nameCó thể đã có người làm @soxofaan đã nhận 48 ngày trước. Đang mởfeature request
Open-EO/openeo-python-client#902 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add split_points functionalityCó thể đã có người làm @HansVRP đã nhận 3 ngày trước. Đang mởjob manager
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Open-EO/openeo-python-client#899 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Open-EO/openeo-python-client
Issue tương tự
-
documentation good first issue
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
sujithputta02/Esapay#13 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Flaky: credential-proxy admission metric test asserts a wall-clock bound it does not establishĐang mởneeds-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
gke-labs/kube-agents#3277 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jbacalso24/mimry#291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 82/100
eli-alvarado/us-watchlist-alerts#14 ·
Maintainer thường phản hồi trong vòng 1 ngày