Unable to get tracks of certain users
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- api
Research direction
Start by reproducing the example with the permalink "feedme" and inspect the responses from /resolve and /users/{id}/tracks. Read the SDK handling around these requests and compare a failing user with one that works. Done means identifying the cause of the user-specific failure and documenting or fixing the affected behavior.
Written by the indexing model from the issue text.
Description
I have the following, which is triggered by submitting an angular form containing a text input for a permalink:
scope.search = function() {
let url = baseUrl + scope.input.permalink;
SC.get('/resolve', {url: url, client_id: client_id})
.then(function(user) {
SC.get('/users/' + user.id + '/tracks')
.then(function(tracks) {
let n = Math.min(10, tracks.length);
tracks.slice(0,n).map(
(track) => console.log(track.title)
);
});
});
};
The code is meant to resolve the permalink to a user ID, then grab that user's latest 10 tracks (if there are that many) and log the titles. It works for most users, but sometimes fails, e.g. for permalink "feedme". Not sure why it won't work for particular users, I can't see any reason for it in the API docs/reference or the source code.
Thanks in advance for any feedback or ideas!
- Dominant language
- JavaScript
- Stars
- 388
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from soundcloud/soundcloud-javascript
-
Dependency Dashboard Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
soundcloud/soundcloud-javascript#90 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in soundcloud/soundcloud-javascript
Similar issues
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
DavidAnson/markdownlint-cli2#940 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Difficulty 2/5 1-3 hours Newbie friendliness 90/100