Skip to content

Options are nil when fetching playlists #270

@fwcd

Description

@fwcd

A tool I built using this library has begun crashing for me two days ago:

/opt/hostedtoolcache/Ruby/3.3.0/x64/lib/ruby/gems/3.3.0/gems/rspotify-2.12.4/lib/rspotify/playlist.rb:97:in `initialize': undefined method `[]' for nil (NoMethodError)

      @collaborative = options['collaborative']
                              ^^^^^^^^^^^^^^^^^
	from /opt/hostedtoolcache/Ruby/3.3.0/x64/lib/ruby/gems/3.3.0/gems/rspotify-2.12.4/lib/rspotify/user.rb:285:in `new'
	from /opt/hostedtoolcache/Ruby/3.3.0/x64/lib/ruby/gems/3.3.0/gems/rspotify-2.12.4/lib/rspotify/user.rb:285:in `block in playlists'
	from /opt/hostedtoolcache/Ruby/3.3.0/x64/lib/ruby/gems/3.3.0/gems/rspotify-2.12.4/lib/rspotify/user.rb:285:in `map'
	from /opt/hostedtoolcache/Ruby/3.3.0/x64/lib/ruby/gems/3.3.0/gems/rspotify-2.12.4/lib/rspotify/user.rb:285:in `playlists'
        from /opt/hostedtoolcache/Ruby/3.3.0/x64/lib/ruby/gems/3.3.0/gems/drum-0.2.3/lib/drum/service/spotify.rb:247:in `all_sp_library_playlists'

Here is the relevant library call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions