Giter Site home page Giter Site logo

spotify-api's People

Contributors

jberkel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mathieuseguin

spotify-api's Issues

catch timeouts

and return appropriate error msg

(java.util.concurrent.TimeoutException)

Last.fm friend playlist creator fails with some usernames

For some reason, the line query('user.getLovedTracks', :user=>user_id, :limit=>limit)['lovedtracks']['track'] sometimes returns an array in the loved_tracks -method in lastfm.rb even though it's supposed to return a hash. This causes an error that I catched by altering the method so that it simply ignores the result from the line if it is an array and returns a hash with sample information instead. This error seems to only occur with certain usernames, try mine, it's jomakko2

Couple of problems getting tests to pass

Hi,

Just two problems I encountered, am I doing something incorrectly?:

(1) Searching "should return a result for a search" fails with:

Connected to 'ap7.spotify.com./78.31.12.10:4070'

NativeException: java.lang.NullPointerException: null
de/felixbruns/jotify/JotifyConnection.java:267:in `search'
de/felixbruns/jotify/JotifyPool.java:168:in `search'
de/felixbruns/jotify/JotifyConnection.java:267:in `search'
de/felixbruns/jotify/JotifyPool.java:168:in `search'
C:/Users/user/RubymineProjects/spotify-api/spec/integration_spec.rb:18
-e:1:

(2) Integration playlists "should return name and id, not tracks (GH-3)" fails with:

NoMethodError: undefined method `getName' for [Track: null, null, ]:Java::DeFelixbrunsJotifyMedia::Track
C:/Users/user/RubymineProjects/spotify-api/spec/integration_spec.rb:48
C:/Users/user/RubymineProjects/spotify-api/spec/integration_spec.rb:46
C:/Users/user/RubymineProjects/spotify-api/spec/integration_spec.rb:42:in `each'
C:/Users/user/RubymineProjects/spotify-api/spec/integration_spec.rb:42
-e:1:

A couple of changes and I can get them to pass but I just wondered if I am missing something.

Cheers, <bb />

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.