Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Improve error message when library metadata request fails

Đang mở
#601 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

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
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
tooling

Hướng nghiên cứu

No file or test is named. Start by tracing the library-resolution path that produces "Could not resolve the library" and compare failures for library names, versions, and metadata requests. Done means the error identifies the failed portion or cause instead of using the same generic message for every failure.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

This issue is dedicated to one of the follow-up items in this comment: https://github.com/aspnet/LibraryManager/issues/370#issuecomment-637953775

Functional impact

Error is imprecise about the cause of failure and may lead to user confusion

Minimal repro steps

Happens randomly, no reliable repro
When downloading a library for the first time, if one of the metadata requests fails we get a generic "Could not resolve the library foo@1.2.3".

Expected result

Better indicate the cause of failure or the portion which failed, some ideas:

  • Failed to retrieve file metadata for foo@1.2.3
  • Failed to retrieve library metadata for foo@1.2.3. Received HTTP response 418.
  • Unrecognized library name "foo"
  • Unrecognized library version for "foo@1.2.3"
Actual result

All issues resolving the library and its metadata get a "Could not resolve the library foo@1.2.3" message.

Ngôn ngữ chính
C#
Star
486
Fork
91
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aspnet/LibraryManager

Tất cả issue của aspnet/LibraryManager

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.