Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add tracks to playlist due to "$ operator is invalid for atomic vectors" #129

Open
alecgynness opened this issue May 8, 2021 · 2 comments

Comments

@alecgynness
Copy link

alecgynness commented May 8, 2021

Hello Charlie86,

Apologies if this is not formatted correctly, I have only posted issues a few times, but I love your R package and wanted to contribute. I love the functionality you have given to the community with your package and am very grateful for your tremendous work!

I am having a similar problem with the "add_tracks_to_playlist" function as was noted in this issue regarding atomic vectors...
#6

Here is my terminal output when attempting to add a track to one of my personal playlists.
I do not have any trouble getting playlists, track lists, etc. I have also successfully created a playlist, so my token works fine.

I run this to add a single track to the beginning of a playlist...

add_tracks_to_playlist(
playlist_id,
"spotify:track:35JVOjqj3ZqdyB8kvynb3q",
position = 0,
authorization = token
)

and then get the following every time.

Error: $ operator is invalid for atomic vectors
Request failed [ERROR]. Retrying in 1 seconds...
Error: $ operator is invalid for atomic vectors
Request failed [ERROR]. Retrying in 2.3 seconds...
Error: $ operator is invalid for atomic vectors

I have tried to trace each input and don't see any issues with the inputs.
Thanks again for your help!

@antaldaniel
Copy link
Collaborator

@alecgynness I'll try to look into this, but it is difficult to replicate this problem without your session, authentication details, etc.

@antaldaniel
Copy link
Collaborator

Can you please confirm that the development version 2.2.4 installed with devtools::install_github('charlie86/spotifyr solves your issue, @alecgynness?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants