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

Detect lack of internet

Đang mở
#684 3 bình luận 0 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
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
cli, networking

Hướng nghiên cứu

The issue names no files or tests. Start by reproducing tea -S without an internet connection and trace the current network-error path; done means users see a clear offline message and retry guidance instead of the generic panic screen and issue-report prompt.

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

Mô tả

enhancement

ATM if you try to do any internet bound command line tea -S and there's no internet connection tea will report its usual error screen:

panic: spilt tea. we’re sorry and we’ll fix it… but you have to report the bug!
    https://github.com/teaxyz/cli/issues/new?title=panic%3Aerror+sending+request+for+url+(https%3A%2F%2Fgithub.com%2Fteaxyz%2Fpantry%2Farchive%2Frefs%2Fheads%2Fmain.tar.gz)%3A+error+trying+to+connect%3A+dns+error%3A+failed+to+lookup+address+information%3A+nodename+nor+servname+provided%2C+or+not+known

TypeError: error sending request for url (https://github.com/teaxyz/pantry/archive/refs/heads/main.tar.gz): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
    at async mainFetch (ext:deno_fetch/26_fetch.js:266:12)
    at async fetch (ext:deno_fetch/26_fetch.js:490:7)
    ...

While any dev parsing this might easily realize what the issue is, it does invite the user to create an issue on Github. For a regular user it would save them and the tea team time by letting the user know the network is down and they should try again later.

Ngôn ngữ chính
Rust
Star
9.9k
Fork
1.4k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
1

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 pkgxdev/pkgx

Tất cả issue của pkgxdev/pkgx

Issue tương tự

Thêm issue về Rust

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.