Unable to delete packages for user
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
- 38/100
Hướng nghiên cứu
Bắt đầu với .github/scripts/cleanup-tags.py, xung quanh lời gọi đến delete_package_version_for_authenticated_user, sau đó lần theo endpoint được tạo qua ghapi/core.py. So sánh các chi tiết của request với lệnh curl thành công và ghi lại hoặc kiểm thử thay đổi cần thiết để việc xóa package hoạt động từ một GitHub Action.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When using this API from within a GitHub Action, the API returns a 404 error when attempting to use delete_package_version_for_authenticated_user. However, doing a manual curl command to the same URL (with auth token) succeeded.
{'data': None,
'full_url': 'https://api.github.com/user/packages/container/paperless-ngx/versions/16658258',
'headers': {'Accept': 'application/vnd.github.v3+json'},
'method': 'DELETE'}
_main()
File "/home/runner/work/paperless-ngx/paperless-ngx/.github/scripts/cleanup-tags.py", line 197, in _main
api.packages.delete_package_version_for_authenticated_user(
File "/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/ghapi/core.py", line 63, in __call__
return self.client(self.path, self.verb, headers=headers, route=route_p, query=query_p, data=data_p)
File "/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/ghapi/core.py", line 112, in __call__
res,self.recv_hdrs = urlsend(path, verb, headers=headers or None, debug=self.debug, return_headers=True,
File "/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/fastcore/net.py", line 212, in urlsend
return urlread(req, return_json=return_json, return_headers=return_headers)
File "/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/fastcore/net.py", line 113, in urlread
if 400 <= e.code < 500: raise ExceptionsHTTP[e.code](e.url, e.hdrs, e.fp) from None
fastcore.basics.HTTP404NotFoundError: HTTP Error 404: Not Found
vs
curl -X DELETE -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ghp_*************" https://api.github.com/user/packages/container/paperless-ngx/versions/16658258
Previously in the same code, get_all_package_versions_for_package_owned_by_authenticated_user worked without issue, so I don't believe it is an access issue.
- Ngôn ngữ chính
- Python
- Star
- 687
- Fork
- 69
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 AnswerDotAI/ghapi
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
AnswerDotAI/ghapi#158 ·
-
Small fix needed to enable GHESĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
AnswerDotAI/ghapi#120 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 58/100
AnswerDotAI/ghapi#208 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
AnswerDotAI/ghapi#201 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
AnswerDotAI/ghapi#186 ·
Tất cả issue của AnswerDotAI/ghapi
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] vllm-sr config migrate drops providers.models[].deploymentCó thể đã có người làm @Bevisy đã nhận hôm nay. Đang mởneeds-acceptance wg/developer-experience-ecosystem
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
vllm-project/semantic-router#5996 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bugfix low-priority plugin:abstract plugin:leyline small-effort source:discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
athola/claude-night-market#1132 ·
-
Add support for Sinhala languageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
WeblateOrg/language-data#2773 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[yugabyted] xcluster set_up and add_to_replication fail for database names containing - . or (Đang mởkind/bug priority/medium qa_automation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
yugabyte/yugabyte-db#37324 ·
Maintainer thường phản hồi trong vòng 1 ngày