Search will not show any track

When I run my app in the development mode it complies correctly I am able to authenticate to Spotify, but when I do a search I get the following errors.

Error: The error you provided does not contain a stack trace.
Unhandled Promise Rejection: TypeError: Load failed
promiseEmptyOnRejected
promiseReactionJob

I do not see where my promises are bad on my Spotify.js

const redirectUri = 'http://localhost:3000/'; const Spotify = { getAccessToken() { if(accessToken){ return accessToken; } //Check for access token const accessTokenMatch = window.location.href.match(/access_Token=([^&]*)/); const expiresInMatch = window.location.href.match(/expires_in=([^&}*)])/); if(accessTokenMatch && expiresInMatch){ accessToken = accessTokenMatch[1]; const expiresIn = Number(expiresInMatch[1]); // Allows us to clear the parameters and grab new access token window.setTimeout(() => accessToken , expiresIn * 1000); window.history.pushState('Access Token', null, '/'); return accessToken; } else { const accessUri = `https://accounts.spotify.com/authorize?client_id=${clientId}&response_type=token&scope=playlist-modify-public&redirect_uri=${redirectUri}`; window.location = accessUri; } }, search(term){ const accessToken = Spotify.getAccessToken(); return fetch(`https://api.spotify.com/v1/search?type=track&q=${term}`, { headers: { Authorization: `Bearer ${accessToken}` } }).then(response => { return response.json() }).then(jsonResponse => { if(!jsonResponse.tracks){ return []; } return jsonResponse.tracks.items.map(track => ({ id: track.id, name: track.name, artist: track.artists[0].name, album: track.album.name, uri: track.uri })) }) }, savePlaylist(playListName,trackUris){ if(!playListName || !trackUris.length){ return; } const accessToken = Spotify.getAccessToken(); const headers = { Authorization: `Bearer ${accessToken}` }; let userId; return fetch('https://api.spotify.com/v1/me', {headers: headers}).then(response => response.json).then( jsonResponse => { userId = jsonResponse.id; return fetch(`https://api.spotify.com/v1/users/${userId}/playlists`, { headers: headers, method: 'POST', body: JSON.stringify({name: playListName}) }).then(response => response.json()).then(jsonResponse =>{ const playlistId = jsonResponse.id; return fetch(`https://api.spotify.com/v1/users/${userId}/playlists/${playlistId}/tracks`, {headers: headers, method: 'POST', body: JSON.stringify({uris: trackUris}) }) }) } ) } };

here is the code from my App.js

search(term){ Spotify.search(term).then(searchResults => { this.setState({searchResults: searchResults}) }) }

Any help would be greatly welcomed.

This is the Jamming project