Closed shirne closed 1 year ago
也没人出来合并这个 然后发布到pub
也没人出来合并这个 然后发布到pub
测试方法:拉取dio分支到本地,修改flutter/pubspec.yaml 中qiniu_sdk_base的引用为path,然后运行flutter/example
qiniu_sdk_base: #^0.5.0
path: ../base/
git引入的方法: 修改 qiniu_flutter_sdk 的引入方式为git,override qiniu_sdk_base的引入方式为git
dependency_overrides:
qiniu_sdk_base:
git:
url: https://github.com/shirne/qiniu-sdk
ref: e3c64afce0d6546e3316a6b3adcd608f58adf81d
path: base/
dependencies:
...
qiniu_flutter_sdk:
git:
url: https://github.com/shirne/qiniu-sdk
ref: e3c64afce0d6546e3316a6b3adcd608f58adf81d
path: flutter/
首先真的非常感谢贡献代码 我们将会抽时间尽快审核代码
我测了下,dio 好像把 Content-Type
的类型的默认值从 application/json
改成 application/x-www-form-urlencoded
了,你可以跑下 base 的测试吗
我测了下,dio 好像把
Content-Type
的类型的默认值从application/json
改成application/x-www-form-urlencoded
了,你可以跑下 base 的测试吗
我搞一个密钥跑一下看看
更新了dio版本到 5.0.1,其它测试通过了,put_bytes 这里还有几个没通过
Expected: StorageErrorType:<StorageErrorType.CANCEL>
Actual: StorageErrorType:<StorageErrorType.RESPONSE>
应该是上传进度没有回调到导致的
@yinxulai @huangbinjie 分片上传初始化的时候返回了这个错误
"{error: incorrect region, please use up-z2.qiniup.com, bucket is: shirne}"
config_test中是通过的,地址是
https://upload-z2.qiniup.com
初始化地址为:
https://upload-na0.qiniup.com/buckets/shirne/objects/dGVzdF9mb3JfcHV0X3BhcnRzLm1wNA==/uploads
@yinxulai @huangbinjie 找到问题了,put/helpers下面还需要修改一个域名。
目前用了两个密钥测试都通过了。
为啥升级下 dio 的版本就能解决分片上传的错误... @yinxulai 来看看把
为啥升级下 dio 的版本就能解决分片上传的错误... @yinxulai 来看看把
https://github.com/cfug/dio/commit/42b7eb838a3e6e73fdb93478b2992e0f36eba39b 是这个提交影响的,可能跟header有关
为啥升级下 dio 的版本就能解决分片上传的错误... @yinxulai 来看看把
cfug/dio@42b7eb8 是这个提交影响的,可能跟header有关
这个问题确认了,那个错误是在complete的post请求中抛出的。之前默认的contextType不正确,在dio5.0.1中自动检测contentType后修复了。 上面的commit 强制指定了contentType,在dio5.0.0中也可以正常运行
@huangbinjie 没大问题我可以先合进去但是先不发布,剩下的我再调整一下
@yinxulai 有空看下为啥测试没触发
挺长时间了 还不行?
@yinxulai 有空看下为啥测试没触发
qiniu 组织下的 travis 已经没有续订阅了,现在应该是转向了 actions,我尽快改造成 actions
https://github.com/qiniu/dart-sdk/pull/66#discussion_r1147160067 @shirne 这个麻烦回复下
qiniu 组织下的 travis 已经没有续订阅了,现在应该是转向了 actions,我尽快改造成 actions
@yinxulai 那你得整了啊,不然 master 也不跑
每天关注一下 进度
@AlexV525
需要解决下冲突 @shirne
Patch coverage: 23.43
% and project coverage change: -0.15
:warning:
Comparison is base (
3b36dfd
) 20.78% compared to head (62ab14d
) 20.63%.:exclamation: Current head 62ab14d differs from pull request most recent head 9ba1d16. Consider uploading reports for the commit 9ba1d16 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
这个冲突怎么搞?先发布一下base的 0.5.0 ?
这个冲突怎么搞?先发布一下base的 0.5.0 ?
这个先忽略吧