containerd / containerd/nerdctl

Better, more informative errors when pull fails (maybe other network operations as well)

Open
#3,302 0 comments 2 reactions 0 assignees View on GitHub
kind/feature
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

### What is the problem you're trying to solve

Servers may misbehave, or return html error pages in certain conditions. Then some images may be broken.

Looking at things like #2676 - it is really hard to tell what is going on - for the user first, and for us reading the tea leaves in bug reports...

### Describe the solution you'd like

Suggestion is first to strengthen our user error reporting, and give more informative messages than "snapshotter faceplant, bye".

We should say at least say:
- DNS resolution failed: unable to reach your DNS server
- Network issue: unable to connect to server XYZ
- Server is misbehaving: received 500 / error page
- Image is broken: unknown content type yada
- etc

Furthermore, we should ramp up our testing.
We are testing happy path, for the most part, and we should start figuring out what happens when things are not working...

The benefits should be two-fold:
- much better user experience
- easier for maintainers to spot actual issues

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.