Jamming Search Button not working

Jamming Project

I finished the project, but cannot get my search button to find the track or artist I am searching for (I do not get any error messages, just nothing happens).

I tried adding onClick={this.search} to the button element in searchBar.js file. But that still did not fix the problem. I have seen other people struggle with this same problem, but I was not able to find a solution in there topics.




I barely know what I’m talking about… but did you open Dev Tools to see if any errors are happening. I notice that after a search I sometimes get an error in the console

“Spotify.js:30 GET https://api.spotify.com/v1/search?type=track&q=queen 401”

then I search another term then it works just fine.

Hi @drewbooth, in your Spotify.js file did you declare const variables for clientId and redirectUri?