Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

POST /tracks returns 400 "uid has already been taken" but still creates the track (since 2026-10-15)

Đã đóng
#601 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
api, backend

Hướng nghiên cứu

The report describes a regression in POST /tracks: uploads return 400 with “uid has already been taken” even though tracks are created. Start by comparing the behavior before and after 2026-10-15 and reviewing the related issue #600. Done means the API returns 201 with the created track, or documents a supported way to retrieve its URN.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Since 2026-10-15, every track upload from our app via POST https://api.soundcloud.com/tracks returns HTTP 400 with the body below, but the track is created and finishes processing. The same request returned 201 with the track until 2026-10-14. Nothing changed on our side (same build, same OAuth app, same request shape).

This looks like the same incident mentioned in #600 (comment by @Lorenzo-Biondi). Opening separately because #600 is about PUT /tracks/{urn} returning 500.

Request (Authorization: OAuth <access token of the account owner>, multipart/form-data):

Field Value
track[asset_data] MP3, ~4–5 MB
track[title] e.g. Listen to the article: What is a forward-deployed engineer?
track[sharing] public

Response:

HTTP 400 Bad Request
{"code":400,"message":"uid has already been taken","link":"https://developers.soundcloud.com/docs/api/explorer/open-api","status":"400 - Bad Request","errors":[{"error_message":"uid has already been taken"}],"error":null}

Timeline (UTC):

Window Result
2026-10-09 → 2026-10-14 15:17 9 uploads, all 201 with the track
2026-10-15 19:41 → now every upload 400 uid has already been taken (one 500 at 2026-10-15 19:44:45)

The OAuth token refresh (POST https://secure.soundcloud.com/oauth/token) keeps returning 200 throughout, and updates via PUT /tracks/{urn} were working until 2026-10-14.

Tracks created despite the 400 (account soundcloud.com/mckinsey; each URN maps to one "failed" request at the listed time):

Request time (UTC) Track created
2026-10-16 19:20:30 soundcloud:tracks:2420541609
2026-10-16 19:21:45 soundcloud:tracks:2420541999
2026-10-16 19:23:53 soundcloud:tracks:2420542809

Impact: because the response is an error, the client cannot learn the new track's URN, and any retry creates another public duplicate.

Expected: 201 with the created track, as before 2026-10-15.

Questions:

  1. Is this a known incident, and is there an ETA?
  2. Until it is fixed, is there a supported way to get the URN of the track created by a request that returned this 400?

Client ID and further request timestamps available on request.

Ngôn ngữ chính
JavaScript
Star
260
Fork
52
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của soundcloud/api

Tất cả issue của soundcloud/api

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.