Comments (1)
Good catch, thanks for flagging this. There are two different Spotify API endpoints: one for finding a track, one for finding several tracks. When a string is passed to find()
the former is used; when an array is passed, the latter is.
If there are invalid ids the first endpoint raises a 400, whereas the second one returns null
for each invalid instance. In order to be faithful to the API, I made a change to reflect this accordingly:
If there are invalid ids when passing an array, return nil
for each instance. But if you're searching for a single instance, you'll still get the correspondent API response (400).
from rspotify.
Related Issues (20)
- Support for unfollowing playlists
- error while trying to offset tracks HOT 1
- player.currently_playing gives nil error if user is playing a podcast HOT 2
- User.playlists does not yield private playlists HOT 1
- total tracks inconsistency
- .track() method crashes when the limit exceed the maximum allowed HOT 1
- Add support for "Fields" in Playlist Endpoint
- Continue receiving "Invalid Credentials" error
- undefined method `encode' for URI:Module
- No route matches [GET] "/auth/spotify" HOT 1
- Why not all of my playlists are visible? HOT 2
- Calls to User.oauth_put with empty hash as params argument raise a warning
- Playlist method calls don't fail gracefully when @owner != current_user HOT 3
- RSpotify::User.find 404
- csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError HOT 1
- Adding tracks to playlists raises NameError?
- Ruby 3.0+ Support HOT 2
- Show search returns `nil` items HOT 1
- Auth arguments error - wrong number of arguments (given 2, expected 1) HOT 2
- Use the Ruby Style Guide where practical
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspotify.