Skip to content

Document TOOMANYREQUESTS error code - #1833

Merged
dmcgowan merged 1 commit into
distribution:masterfrom
aaronlehmann:document-toomanyrequests
Jul 13, 2016
Merged

dmcgowan merged 1 commit into
distribution:masterfrom
aaronlehmann:document-toomanyrequests

Conversation

@aaronlehmann

Copy link
Copy Markdown

Add entries with this error code in registry/api/v2/descriptors.go.

Add entries with this error code in registry/api/v2/descriptors.go.

Signed-off-by: Aaron Lehmann <[email protected]>
@codecov-io

Copy link
Copy Markdown

Current coverage is 52.49%

Merging #1833 into master will decrease coverage by 6.91%

@@             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   

Sunburst

Powered by Codecov. Last updated by 2052f29...b009900

@RichardScothern

Copy link
Copy Markdown

LGTM

1 similar comment
@dmcgowan

Copy link
Copy Markdown
Collaborator

LGTM

@dmcgowan
dmcgowan merged commit 37b5e3e into distribution:master Jul 13, 2016
Comment thread docs/spec/api.md
<dt>l</dt>
<dd>
<ul>
<li>Document TOOMANYREQUESTS error code.</li>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have ended up in autogenerated error table, rather than on each request.

@stevvooe

Copy link
Copy Markdown
Collaborator

@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.

@aaronlehmann
aaronlehmann deleted the document-toomanyrequests branch July 15, 2016 03:46
@aaronlehmann

Copy link
Copy Markdown
Author

I patterned this after unauthorized, which is attached to the individusl endpoints. Do you think this error should be documented differently?

Can you point me to the error code table you mentioned?

@stevvooe

Copy link
Copy Markdown
Collaborator

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.

@aaronlehmann

Copy link
Copy Markdown
Author

Unfortunately the link doesn't seem to work for me. Could you please link to a source file instead of the diff?

@stevvooe

Copy link
Copy Markdown
Collaborator

@SvenDowideit

Copy link
Copy Markdown
Contributor

@aaronlehmann @dmcgowan what release will this be going out with?

do the docs changes apply to the currently release version?

@stevvooe

Copy link
Copy Markdown
Collaborator

@SvenDowideit As far as I understand, these change applies. The main issue here is verbosity but this can be pulled into the release.

@SvenDowideit

SvenDowideit commented Jul 22, 2016 •

Copy link
Copy Markdown
Contributor

@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 SvenDowideit added this to the Registry/2.5 milestone Jul 22, 2016
@stevvooe

Copy link
Copy Markdown
Collaborator

@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.

@RichardScothern

Copy link
Copy Markdown

@SvenDowideit it's been present since v2.3.1

thaJeztah added a commit to thaJeztah/distribution-spec that referenced this pull request Oct 30, 2020
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]>
thaJeztah added a commit to thaJeztah/distribution-spec that referenced this pull request Oct 30, 2020
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]>
jdolitsky pushed a commit to opencontainers/distribution-spec that referenced this pull request Nov 3, 2020
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants