Several users (including myself) experience an issue where Pandora API user.canSubscribe method throws error with code 1000 and message "An unexpected error occurred".
user.canSubscribe method is called in checkSubscriberStatus function, the sole purpose of which is to determine whether the user is a subscriber.
It is possible to get the same information just by passing additional parameter returnIsSubscriber: true in auth.userLogin, which is called before checkSubscriberStatus anyway.
I have removed checkSubscriberStatus function (which was called in 1 place only) and replaced the functionality of getting subscriber status by passing additional parameter returnIsSubscriber: true in auth.userLogin.
Tested with both free and paid accounts.
Please let me know if you need me to do anything else.
This is my first pull request, so I am sorry if I missed anything.
…" error
Several users (including myself) experience an issue where Pandora API
user.canSubscribe
method throws error with code1000
and message"An unexpected error occurred"
.user.canSubscribe
method is called incheckSubscriberStatus
function, the sole purpose of which is to determine whether the user is a subscriber.It is possible to get the same information just by passing additional parameter
returnIsSubscriber: true
inauth.userLogin
, which is called beforecheckSubscriberStatus
anyway.I have removed
checkSubscriberStatus
function (which was called in 1 place only) and replaced the functionality of getting subscriber status by passing additional parameterreturnIsSubscriber: true
inauth.userLogin
.Tested with both free and paid accounts.
Please let me know if you need me to do anything else.
This is my first pull request, so I am sorry if I missed anything.