Skip to content
This repository was archived by the owner on Jul 4, 2020. It is now read-only.
This repository was archived by the owner on Jul 4, 2020. It is now read-only.

"Retry-After" header is sometimes (0) when API returns rate-limit error #542

@dsoprea

Description

@dsoprea

Endpoint(s):

  • (any)

Scope(s):

  • spotify.ScopeUserReadPrivate
  • spotify.ScopePlaylistReadCollaborative
  • spotify.ScopePlaylistReadPrivate
  • spotify.ScopePlaylistModifyPrivate
  • spotify.ScopePlaylistModifyPublic

Steps to reproduce:

Inconsistent. I received a bunch of non-zero values, then I started receiving zeros, then I started getting the non-zeros again. It is currently working as expected but is clearly capable of returning zero under the right circumstances.

Expected behaviour:

Retry-After should be an integer greater than zero.

Actual behaviour:

Retry-After is given but is sometimes zero when the "API rate limit exceeded" error is received.

2017/05/21 10:09:37 gnss.spotify: [DEBUG]  Searching for artist: [disciple]
HEADER: [Keep-Alive] = [timeout=600]
HEADER: [Retry-After] = [0]
HEADER: [Access-Control-Allow-Credentials] = [true]
HEADER: [Date] = [Sun, 21 May 2017 14:09:37 GMT]
HEADER: [Connection] = [keep-alive]
HEADER: [Access-Control-Allow-Origin] = [*]
HEADER: [Access-Control-Allow-Methods] = [GET, POST, OPTIONS, PUT, DELETE]
HEADER: [Access-Control-Max-Age] = [604800]
HEADER: [Access-Control-Allow-Headers] = [Accept, Authorization, Origin, Content-Type]
HEADER: [Server] = [nginx]
2017/05/21 10:09:37 main: [ERROR]  There was an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions