Skip to content

Rate Limit Responses for Repost Endpoints #74

Open
@mgoodfellow

Description

@mgoodfellow

Title: Rate Limit Responses for Actions Endpoints (Reposts)

Issue found of: 7th July, 2021

Endpoint(s):

  • POST /reposts/tracks/{id}

Scope(s):

  • User scope

Expected behaviour:

When a user has been blocked from reposting on SoundCloud, this endpoint should return a 429 response. Historically when we were using the v2 API, this was the case, and this enabled us to notify the user they have been rate limited by SoundCloud, give them advice on why this is not a good idea and should be avoided, as well as pointing them to resources on the SoundCloud website for more information.

While we enforce our own limits on reposting via our app, a user is able repost elsewhere before doing doing so on our platform.

By giving us a 429 response, it enables us to close the feedback loop with the user, as well as allowing us to temporarily restrict functionality if warranted.

Other action endpoints (follows, likes etc) return 429 when a user has breached limits which allows us to be more intelligent with our advice and messaging within our app.

Actual behaviour:

It seems that when the repost rate-limit is hit, this endpoint returns 500 instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions