fetch(`${endPoint}browse/categories/rock/playlists`, artistParameters)
.then(result => result.json())
.then(data => setPlaylists(data.playlists.items))
.catch(err => console.log(err))`
SyntaxError: Unexpected token ‘T’, “Too many requests” is not valid JSON
This is perfectly worked before without any error . But I get this err now while accessing the data from spotify using spotify api in react js.
I need to resolve how the error occurred. And I need to solve this.
New contributor
Muhammed Shafeek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.