Repository navigation
Document TOOMANYREQUESTS error code - #1833
Conversation
Add entries with this error code in registry/api/v2/descriptors.go. Signed-off-by: Aaron Lehmann <[email protected]>
Current coverage is 52.49%@@ master #1833 diff @@
==========================================
Files 120 120
Lines 10471 10471
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 6221 5497 -724
- Misses 3418 4233 +815
+ Partials 832 741 -91
|
|
LGTM |
1 similar comment
|
LGTM |
| <dt>l</dt> | ||
| <dd> | ||
| <ul> | ||
| <li>Document TOOMANYREQUESTS error code.</li> |
There was a problem hiding this comment.
This should have ended up in autogenerated error table, rather than on each request.
|
@aaronlehmann This probably should have been put in the error code table, rather than on each request. Error response documentation is only for error specific to the request. |
|
I patterned this after Can you point me to the error code table you mentioned? |
|
The error code table is here https://github.com/docker/distribution/pull/1833/files#diff-b1b743dcaef6049308cb7cf5d689a3a1L1128. I'm wondering if we need "generic" response examples to cover codes that can be encountered on any request. unauthorized falls into this category, as well. |
|
Unfortunately the link doesn't seem to work for me. Could you please link to a source file instead of the diff? |
|
@aaronlehmann @dmcgowan what release will this be going out with? do the docs changes apply to the currently release version? |
|
@SvenDowideit As far as I understand, these change applies. The main issue here is verbosity but this can be pulled into the release. |
|
@stevvooe @aaronlehmann @dmcgowan does this mean that this change will go out in v2.4.2 or in v2.5.0? I'm presuming v2.5.0, and will give it that milestone, please change it if i'm wrong - we use the milestone to work out when to publish changes in the docs. (though having patch release milestones is more useful really) |
|
@SvenDowideit Doesn't matter. This error code has existed for some time, but was undocumented in the spec. I'll defer to @RichardScothern if that's not the case. |
|
@SvenDowideit it's been present since v2.3.1 |
The `TOOMANYREQUESTS` error code was added in distribution/distribution#1693, and added to the documentation in distribution/distribution#1833. While it's documented in various examples, it never made it to the list of allowed error-codes. This patch is fixing that omission and adding it to the list of valid error-codes that can be returned by registries Signed-off-by: Sebastiaan van Stijn <[email protected]>
The `TOOMANYREQUESTS` error code was added in distribution/distribution#1693, and added to the documentation in distribution/distribution#1833. While it's documented in various examples, it never made it to the list of allowed error-codes. This patch is fixing that omission and adding it to the list of valid error-codes that can be returned by registries Signed-off-by: Sebastiaan van Stijn <[email protected]>
The `TOOMANYREQUESTS` error code was added in distribution/distribution#1693, and added to the documentation in distribution/distribution#1833. While it's documented in various examples, it never made it to the list of allowed error-codes. This patch is fixing that omission and adding it to the list of valid error-codes that can be returned by registries Signed-off-by: Sebastiaan van Stijn <[email protected]>
Add entries with this error code in registry/api/v2/descriptors.go.