国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【解決】axios 下載文件 Failed to read the 'responseText' property from 'XMLHttpRequest'

這篇具有很好參考價(jià)值的文章主要介紹了【解決】axios 下載文件 Failed to read the 'responseText' property from 'XMLHttpRequest'。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

主要解決以下兩個(gè)問(wèn)題

問(wèn)題一:idm一些網(wǎng)站不允許請(qǐng)求同一文件兩次

故障原因:IDM 在發(fā)神經(jīng)

因?yàn)樗鼨z測(cè)到瀏覽器集成插件未安裝,所以誘導(dǎo)你安裝。實(shí)際上,裝了插件問(wèn)題也會(huì)出現(xiàn)。改參數(shù)都沒(méi)用。

1.很可能是你點(diǎn)擊網(wǎng)頁(yè)的 下載鏈接 有問(wèn)題(換個(gè)網(wǎng)頁(yè)下載試試,就不提示了),Edge 瀏覽器一直會(huì)欺騙你, Google 瀏覽器偶會(huì)欺騙你。? 如果開(kāi)發(fā)項(xiàng)目,檢查后端接口正常

問(wèn)題二:Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'blob').
at r.onreadystatechange (http://cdn.staticfile.org/axios/0.1.0/axios.min.js:2:1004)

2.也可能是前端 請(qǐng)求工具 出了問(wèn)題。比如請(qǐng)求工具

// post、put、patch 等請(qǐng)求
axios.post(url, {...someData}, {responseType: 'blob'})
    .then((res) => {
        //...
    }).catch((err) => {
        //
    })

故障原因:排查一個(gè)早上,也參考了 Github 一些倉(cāng)庫(kù)的代碼,在另一個(gè)項(xiàng)目也正常用的,這個(gè)語(yǔ)法沒(méi)有問(wèn)題。最后才發(fā)現(xiàn),是 axios 版本太 TM 老了。

<!--<script src="http://cdn.staticfile.org/axios/0.1.0/axios.min.js"></script>-->
<script src="http://cdn.bootcdn.net/ajax/libs/axios/1.3.6/axios.min.js"></script>

更新到 1.3.6 ,網(wǎng)頁(yè)點(diǎn)擊下載,就正常了。IDM也不報(bào)錯(cuò)。
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-428115.html

到了這里,關(guān)于【解決】axios 下載文件 Failed to read the 'responseText' property from 'XMLHttpRequest'的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 開(kāi)機(jī)自啟失敗讀串口失敗 read failed: device reports readiness to read but returned no data解決

    開(kāi)機(jī)自啟失敗讀串口失敗 read failed: device reports readiness to read but returned no data解決

    ?? 最近在開(kāi)始接觸樹(shù)莓派,想要完成的功能是在樹(shù)莓派上跑一個(gè)Python程序獲取樹(shù)莓派串口的數(shù)據(jù),然后將Python程序配置為開(kāi)機(jī)自啟,讓其上電之后就自動(dòng)開(kāi)始獲取串口數(shù)據(jù)并上傳數(shù)據(jù)到云端(我用的是MQTT服務(wù)器,如果有需要了解這部分內(nèi)容小伙伴留言,我再抽時(shí)間把這部

    2023年04月26日
    瀏覽(77)
  • Unity報(bào)錯(cuò):InvalidOperationException:You are tring to read lnput using the UnityEngine. ……的解決辦法

    Unity報(bào)錯(cuò):InvalidOperationException:You are tring to read lnput using the UnityEngine. ……的解決辦法

    問(wèn)題描述: 我在運(yùn)行steam VR的Interaction_Example時(shí)報(bào)錯(cuò),其中unity為2021.3.6f1c1,steam VR(2.7.3),頭顯為HTC Vive pro2。報(bào)錯(cuò)具體內(nèi)容如下: InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings. UnityEngine

    2024年02月12日
    瀏覽(29)
  • Xcode14:”Failed to prepare the device for development“解決

    當(dāng)前Xcode版本14.2,測(cè)試機(jī)iOS版本16.4, 結(jié)果出現(xiàn)提示: Failed to prepare the device for development, 經(jīng)過(guò)Clean,重裝都無(wú)效,最后發(fā)現(xiàn)其他人也有類似的問(wèn)題 ? ? ? ?https://developer.apple.com/forums/thread/714388 PS:首先把升級(jí)之前的arc文件復(fù)制出來(lái),arc文件的目錄如下 /Applications/Xcode.app/Content

    2024年02月08日
    瀏覽(23)
  • 【解決方法】各類軟件啟動(dòng)報(bào)錯(cuò):Failed to create the Java Virtual Machine

    【解決方法】各類軟件啟動(dòng)報(bào)錯(cuò):Failed to create the Java Virtual Machine

    工具:小銳云服 PRO ,Windows 命令處理器,Java 環(huán)境 系統(tǒng)版本:Windows 10 描述:不知名原因?qū)е碌?Java 虛擬機(jī)創(chuàng)建失敗,百度良久后通過(guò)修改系統(tǒng)環(huán)境變量,完成了對(duì)問(wèn)題的處理。 提示:若按照教程還是無(wú)法完成操作,可以進(jìn)入右側(cè)的企鵝,找我看看。 視頻教程: 文字教程:

    2024年02月12日
    瀏覽(31)
  • Xcode真機(jī)運(yùn)行報(bào)錯(cuò):Failed to prepare the device for development解決方法

    Xcode真機(jī)運(yùn)行報(bào)錯(cuò):Failed to prepare the device for development解決方法

    ? ? ? ? 運(yùn)行Xcode然后打包APP,結(jié)果Xcode報(bào)錯(cuò),如下: Failed to prepare the device for development. This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility. ? ? ? ? Xcode? ? ?Version 1

    2024年02月12日
    瀏覽(20)
  • 【你該安裝新的Xcode了】【解決】Failed to prepare the device for development

    【你該安裝新的Xcode了】【解決】Failed to prepare the device for development

    報(bào)錯(cuò)信息如下: Failed to prepare the device for development. This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode.You may also need to restart your Mac and device in order to correctly detect compatibility. 意思很明了,用最新版的Xcode吧。 實(shí)踐證明:Xcode 14.0.1不能在iPa

    2024年02月15日
    瀏覽(24)
  • 【Git】解決fatal: unable to access..Failure when receiving data from the peer或者OpenSSL SSL_read: Connect

    今天拉取倉(cāng)庫(kù)的代碼時(shí),報(bào)錯(cuò)如下: 又或者 OpenSSL SSL_read: Connection was reset, errno 10054 再或者: 解決辦法: 因?yàn)間it在拉取或者提交項(xiàng)目時(shí),中間會(huì)有g(shù)it的http和https代理,但是我們本地環(huán)境本身就有SSL協(xié)議了,所以取消git的https代理即可,不行再取消http的代理。 第一種方式就是

    2024年02月04日
    瀏覽(105)
  • Flink CDC報(bào)The connector is trying to read binlog starting at xxx but this is no longer available問(wèn)題解決

    Flink CDC報(bào)The connector is trying to read binlog starting at xxx but this is no longer available問(wèn)題解決

    問(wèn)題是筆者最近在使用FlinkCDC 2.3.0 捕獲MySQL binlog日志時(shí)遇到的,MySQL使用的阿里云的RDS, MysqlCDC 使用讀賬號(hào)以 Initinal 模式,任務(wù)已經(jīng)運(yùn)行了一段時(shí)間突然報(bào)的錯(cuò),之前在使用FlinkCDC時(shí)也曾遇到過(guò),設(shè)置了一些參數(shù)后沒(méi)有再出現(xiàn)過(guò),一直比較忙沒(méi)有來(lái)得及總結(jié)下來(lái)。但是今天同

    2024年02月07日
    瀏覽(23)
  • Unity實(shí)戰(zhàn)問(wèn)題-解決UnityHUb的Failed to start the Unity Package Manager local server process

    Unity實(shí)戰(zhàn)問(wèn)題-解決UnityHUb的Failed to start the Unity Package Manager local server process

    點(diǎn)擊跳轉(zhuǎn)=Unity3D特效百例 點(diǎn)擊跳轉(zhuǎn)=案例項(xiàng)目實(shí)戰(zhàn)源碼 點(diǎn)擊跳轉(zhuǎn)=游戲腳本-輔助自動(dòng)化 點(diǎn)擊跳轉(zhuǎn)=Android控件全解手冊(cè) 點(diǎn)擊跳轉(zhuǎn)=Scratch編程案例 點(diǎn)擊跳轉(zhuǎn)=軟考全系列 點(diǎn)擊跳轉(zhuǎn)=藍(lán)橋系列 專注于 Android/Unity 和各種游戲開(kāi)發(fā)技巧,以及 各種資源分享 (網(wǎng)站、工具、素材、源碼、游

    2024年02月13日
    瀏覽(17)
  • S32K鎖死之謎?Failed to download RAMCode? Failed to Read Memory?

    S32K鎖死之謎?Failed to download RAMCode? Failed to Read Memory?

    近期在做一個(gè)小產(chǎn)品,是基于S32K144為MCU的板子。在調(diào)試過(guò)程中發(fā)現(xiàn),雖然采用Jlink可以連接上,但是無(wú)法用S32DS的Debug模式進(jìn)行調(diào)試。也就是.elf文件無(wú)法下載進(jìn)入FLASH,而錯(cuò)誤提示總是如下: (1)Failed to download RAMCode (2)Failed to Read Memory xxx 而且讓人崩潰的是焊接了10套板子

    2023年04月22日
    瀏覽(28)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包