1
在我們的Spotify APP中,我們正在調用model.Search函數,以便我們驗證最多100位藝術家的列表。問題是我們可能會驗證的藝術家之一可能是「!!!」。這是一個真實的藝術家姓名,但它會導致Spotify返回,驗證藝術家姓名的錯誤代碼和空列表。我們可以在應用程序中一一驗證藝術家姓名,因此可以處理錯誤代碼,但這會大大降低應用程序的速度。這是API中的錯誤嗎? Spotify是否會盡快解決它?以下是我們正在撥打的電話的一個示例:Spotify API在模型上返回錯誤。搜索藝術家「!!!」
var search = new models.Search("artist:"Mother Love Bone" OR artist:"Hole" OR artist:"Soundgarden" OR artist:"Stone Temple Pilots" OR artist:"Blind Melon" OR artist:"Silverchair" OR artist:"Alice In Chains" OR artist:"Bush" OR artist:"Nirvana" OR artist:"Pearl Jam" OR artist:"Big Black" OR artist:"Hüsker Dü" OR artist:"Throwing Muses" OR artist:"Frank Black" OR artist:"Fugazi" OR artist:"Santogold" OR artist:"This Mortal Coil" OR artist:"Pixies" OR artist:"Lykke Li" OR artist:"Dinosaur Jr." OR artist:"Dinosaur Jr" OR artist:"Morphine" OR artist:"Guided By Voices" OR artist:"Spacemen 3" OR artist:"Ride" OR artist:"My Bloody Valentine" OR artist:"Destroyer" OR artist:"Slowdive" OR artist:"Spiritualized" OR artist:"Wavves" OR artist:"Joanna Newsom" OR artist:"The Beta Band" OR artist:"The Jon Spencer Blues Explosion" OR artist:"Jon Spencer Blues Explosion" OR artist:"Death From Above 1979" OR artist:"Buzzcocks" OR artist:"The Buzzcocks" OR artist:"Television" OR artist:"Battles" OR artist:"Morrissey" OR artist:"The Stone Roses" OR artist:"Ian Brown" OR artist:"The Libertines" OR artist:"The Psychedelic Furs" OR artist:"Psychedelic Furs" OR artist:"Kings Of Convenience" OR artist:"Happy Mondays" OR artist:"Yo La Tengo" OR artist:"Echo & The Bunnymen" OR artist:"The Specials" OR artist:"Interpol" OR artist:"Yeah Yeah Yeahs" OR artist:"Doves" OR artist:"Dover" OR artist:"Joy Division" OR artist:"Silver Jews" OR artist:"!!!"");
search.localResults = models.LOCALSEARCHRESULTS.IGNORE;
search.searchArtists = true;
search.searchAlbums = false;
search.searchTracks = false;
search.searchPlaylists = false;
search.observe(models.EVENT.CHANGE, function() { ... });
search.observe(models.EVENT.LOAD_ERROR, function() { // We got error here });
search.appendNext();
錯誤,試圖使該代碼塊,它失敗 – Woot4Moo