Skip to content

registry: type too many requests error - #1693

Merged
aaronlehmann merged 1 commit into
distribution:masterfrom
runcom:too-many-requests
May 3, 2016
Merged

aaronlehmann merged 1 commit into
distribution:masterfrom
runcom:too-many-requests

Conversation

@runcom

@runcom runcom commented May 3, 2016

Copy link
Copy Markdown
Contributor

ping @aaronlehmann

This patch adds an error type to be later checked also in docker/docker if the registry
is replying with 429.

Signed-off-by: Antonio Murdaca [email protected]

Comment thread registry/api/errcode/register.go Outdated
// times to contact a service endpoint.
ErrorCodeTooManyRequests = Register("errcode", ErrorDescriptor{
Value: "TOOMANYREQUESTS",
Message: "too many requests error",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this should just be "too many requests".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@runcom
runcom force-pushed the too-many-requests branch from 69c7880 to a264f9a Compare May 3, 2016 16:41
@codecov-io

Copy link
Copy Markdown

Current coverage is 54.74%

Merging #1693 into master will decrease coverage by -6.89%

  1. 3 files (not in diff) in ...istry/storage/driver were modified. more
    • Misses +807
    • Partials -92
    • Hits -715
  2. 1 files (not in diff) in registry were modified. more
    • Misses +6
    • Hits -6
@@             master      #1693   diff @@
==========================================
  Files           120        120          
  Lines         10489      10493     +4   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           6465       5744   -721   
- Misses         3424       4241   +817   
+ Partials        600        508    -92   

Powered by Codecov. Last updated by b7088d2...69c7880

@aaronlehmann

Copy link
Copy Markdown

LGTM

1 similar comment
@RichardScothern

Copy link
Copy Markdown

LGTM

@aaronlehmann
aaronlehmann merged commit d4be701 into distribution:master May 3, 2016
@runcom
runcom deleted the too-many-requests branch May 3, 2016 17:27
@runcom

runcom commented May 3, 2016

Copy link
Copy Markdown
Contributor Author

@aaronlehmann is it ok to vendor distribution code now? I'm taking care of it

@aaronlehmann

Copy link
Copy Markdown

@runcom: Absolutely!

@RichardScothern RichardScothern added this to the Registry/2.5 milestone Jun 13, 2016
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]>
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Apr 22, 2021
registry: type too many requests error
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Jan 19, 2022
registry: type too many requests error
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.

5 participants