不支持 repsonseType 为 arraybuffer 的请求
yicone opened this issue · comments
yicone commented
wx.request 的文档中,responseType 参数,支持的合法值包括:text、arraybuffer
将 wx.request 切换到 axios.request 后,请求中如果 responseType 为 arraybuffer,会报错:
adapter.js:179 Uncaught (in promise) Error: Unsupported responseType
at createError (adapter.js:179)
at adapter.js:279
at Promise (<anonymous>)
at loop (adapter.js:19)
at checkQueue (adapter.js:31)
at adapter.js:45
at Promise (<anonymous>)
at enqueue (adapter.js:43)
at wepyAxiosAdapter (adapter.js:239)
at dispatchRequest (dispatchRequest.js:59)
Jingkun Hua commented
目前我工作比较忙,暂时没有时间维护。这些是小程序后来新增的 responseType,所以不支持。欢迎 PR!