Javascript Ionic 2/jsmediatags:获取XHR加载头失败,XHR超时

Javascript Ionic 2/jsmediatags:获取XHR加载头失败,XHR超时,javascript,ionic-framework,xmlhttprequest,ionic2,mp3,Javascript,Ionic Framework,Xmlhttprequest,Ionic2,Mp3,我试图在目录中搜索mp3文件并读取它们的信息,以便创建曲目列表,但我不断收到以下XHR错误: HEAD[music file]net::ERR\u资源不足XHR加载失败: 头[音乐文件] 然后最终 XHR加载失败:头[music file]XHR在30秒后超时。使用 jsmediatags.Config.setXhrTimeout以重写 我尝试过使用jsmediatags.Config.setxhrtimeout(现在是setxhrtimeoutinesec)将超时时间设为零,但仍然收到相同的

我试图在目录中搜索mp3文件并读取它们的信息,以便创建曲目列表,但我不断收到以下XHR错误:

HEAD[music file]net::ERR\u资源不足XHR加载失败: 头[音乐文件]

然后最终

XHR加载失败:头[music file]XHR在30秒后超时。使用 jsmediatags.Config.setXhrTimeout以重写

我尝试过使用
jsmediatags.Config.setxhrtimeout
(现在是
setxhrtimeoutinesec
)将超时时间设为零,但仍然收到相同的错误。下面是我用来读取mp3文件标签的代码:

// If the entry is a mp3 file use jsMediaTags to read its tags
if (entry.name.substr(entry.name.lastIndexOf('.') + 1) == 'mp3') {

        // Read the mp3 file's tags
        jsMediaTags.read(entry.toInternalURL(), {

        // On success we create a new track to the tracks list
        onSuccess: tag => {
            let tags = tag.tags;
            this.tracks.push(new Track(tags.artist, tags.title, tags.album, entry.toInternalURL()));
        },

        // When there is an error print the error to console
        onError: function (err) {
            if(err == 'xhr') console.log(':( ', err.type, err.info, err.xhr);
            else console.log(':( ', err.type, err.info);
        }
    }

你解决了这个问题吗?不幸的是,我没能解决它,忙着工作。你解决了这个问题吗?不幸的是,我没能解决它,忙着工作。