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

Playback returns "The operation failed due to an unspecified issue." #27

Closed
ghost opened this issue Jul 10, 2017 · 3 comments
Closed

Playback returns "The operation failed due to an unspecified issue." #27

ghost opened this issue Jul 10, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 10, 2017

Hey, sorry for all the questions.

I've got all the authentication working now! Thank you for that. My last issue is with playback. I'm trying to play a track using the session variable that is returned to me after logging in. The session object looks like this:

screen shot 2017-07-10 at 5 32 37 am

When I call this.session.play('spotify:track:6rPO02ozF3bM7NnOV4h6s2') it returns this error:
screen shot 2017-07-10 at 5 32 48 am

I used the debugger tool to find where I think it's coming from:
Never mind!
screen shot 2017-07-10 at 5 48 24 am

When I step though the debugger it returns here:
screen shot 2017-07-10 at 5 58 55 am

I see from this page that the error pops up due to
/** The operation failed due to an unspecified issue. */ FOUNDATION_EXPORT NSInteger const SPTErrorCodeFailed;
Am I implementing the play feature incorrectly? What should I do to resolve this problem?

I've been trying to follow your code from here

play(ref) {   return this._withSession(s => s.play(ref ? 'spotify:track:' + ref.id : ref), () => Promise.reject()); }

Thanks again for the help!

@NeoLegends
Copy link
Member

That is super weird.

Seems like there are issues with the native side of the plugin. We (Festify Dev Team) will be meeting up for further development likely next week, so we might take a look at this. In the meantime, you could try running your App with the XCode debugger attached (load the cordova project files with XCode and hit play) and step through the native code there. Might yield some more insights. :)

@ghost
Copy link
Author

ghost commented Jul 12, 2017

Figured it out! Lol... needed to add streaming to my scopes. They should throw a better error for that haha. Thanks for all the help!

@NeoLegends
Copy link
Member

Ah well! Good to know it's working for you. I'm gonna close this then. :)

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

1 participant