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

Can't find the data items #8

Open
RobertJanVlak opened this issue Apr 17, 2020 · 4 comments
Open

Can't find the data items #8

RobertJanVlak opened this issue Apr 17, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@RobertJanVlak
Copy link

When i try to run the code i get the following error:
"TypeError: Cannot read property 'item' of undefined"

It's about this piece of code:
success: data => { this.setState({ item: data.item, is_playing: data.is_playing, progress_ms: data.progress_ms });

So all the steps are working perfect. I get the autentication screen from spotify, and the moment i click accept i get this error and i can't seem to find the solution for it.

@yepMad
Copy link
Contributor

yepMad commented Apr 19, 2020

You need to be listening to something on your Spotify account so that this error does not occur. I will be sending an update.

@JoeKarlsson
Copy link
Owner

Confirmed that this is indeed the issue - does someone want to put in better error handling incase you are not listening to music?

@JoeKarlsson JoeKarlsson added the bug Something isn't working label May 20, 2020
@Caotrungthanh
Copy link

Same error but i don't know how to fix it.

@yepMad
Copy link
Contributor

yepMad commented Jun 15, 2020

I sent a pull request! #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants