-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oss sts回调后端返回的json数据, 前端解析失败 #420
Comments
提供下具体调用代码 |
let options = {
}).catch((err) => { 在options中配置回调地址,上传就不成功,发现的原因是 :无法解析从回调地址返回的json |
stream-http 2.8以后才有问题,2.7没有问题 |
我们测试case中的 callback服务器返回的都是json的数据的
callback 里边的传入数据能否具体一点 比如stsTokenData.CallBackInfo.ContentType 这个是什么, 并提供下你的x-oss-request-id
这些 都是初始化clent需要的, 调用multipart不需要的, dataType: 'json' 这个你用来干啥的,文档没有这个参数 |
stream-http/response.js
case 'arraybuffer':
if (xhr.readyState !== rStates.DONE || !xhr.response)
break
response = xhr.response
self.push(new Buffer(new Uint8Array(response)))
break
new Uint8Array(response) 该方法不能解析json字符串
The text was updated successfully, but these errors were encountered: