Comments (17)
Have you updated the vendor package yet.
UT is now available through most of the cases. The guzzlehttp version is expected to be released during the Mid-Autumn Festival.
from cos-php-sdk-v5.
我就是更新了包才出现这个问题的,更新的是最新的
from cos-php-sdk-v5.
如果运行sample/目录下的demo程序会有问题吗。
from cos-php-sdk-v5.
直接执行没问题的,我直接调用我的方法也没问题,这个其实是要看设置的报错等级的,因为它并不是错误,它只是警告,就是你们这个sdk现在是可以正常把文件上传到COS的,只不过写的不太兼容Guzzle/http,所以它会有警告,这个肯定要把它改成没有警告比较好。
现在上传成功返回结果是这种格式:
GuzzleHttp\Command\Result Object
(
[ETag] => "8fd59a855e5b1ec15ea9f8ab41b2fc3a"
[RequestId] => NWQ3ODg1Y2VfMWRhYTk0MGFfMTA0OF8xN2I3YWM0
)
跟更新之前不一样,更新之前是有url返回的,虽然不返回也可以自己根据参数拼出来。
from cos-php-sdk-v5.
Location这个字段我们这边加一下就可以了;
warning这个我们这边还要研究一下,测试环境下是没有复现的。
可以提供一下php和guzzlehttp版本吗
from cos-php-sdk-v5.
用这个开一下报错等级:
error_reporting(E_ALL ^E_NOTICE);
php版本:
PHP 7.3.0 (cli) (built: Jan 3 2019 10:08:00) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.0, Copyright (c) 1999-2018, by Zend Technologies
guzzlehttp的版本就是目前最新版本:6.3.3
我要说一下哦,我这边用client执行方式没捕捉到错误,我是用网页调用才显示这个错误的。
from cos-php-sdk-v5.
1.Location参数已经加上
from cos-php-sdk-v5.
2.这个warning应该也已经修复,可以试一下看
from cos-php-sdk-v5.
两个问题仍然存在,难道是我没更新到?我是先composer remove qcloud/cos-sdk-v5
,再composer require qcloud/cos-sdk-v5:dev-master
的,github的更新是实时同步到packagist的吧?
from cos-php-sdk-v5.
composer不会自动同步的,我刚才update了。
from cos-php-sdk-v5.
好的,你可以设置自动同步勾子的,这样不用自己更新,只要github更新了就会自动推到packagist中,我这篇文章有写怎么设置:https://www.xiebruce.top/1103.html#GithubComposer
from cos-php-sdk-v5.
还是不行,估计没更新到,有哪个文件让你一看就知道有没有更新的?这样我就可以截个图你看看我是不是没更新到。
我更新的方法是没问题的,也许是有缓存,或者你那边要再点一次update?
from cos-php-sdk-v5.
好的,我这边学习一下。
https://github.com/tencentyun/cos-php-sdk-v5/blob/master/src/Qcloud/Cos/Client.php#L118 我这边更新这一行
from cos-php-sdk-v5.
这样确实是下载最新开发版本呀,也许有缓存吧,要不你再在packagist那边点一下update试试:
composer require qcloud/cos-sdk-v5:dev-master
from cos-php-sdk-v5.
packgist上我看已经更新了,本地的话我记得composer update就可以了的
from cos-php-sdk-v5.
试了好几次,remove掉都不行,最后我直接删掉composer.json中的qcloud再更新,然后再次执行:
composer require qcloud/cos-sdk-v5:dev-master
这次终于安装到新代码了,已经验证,两个问题都已经解决,现在没有问题了,就等你们的UT覆盖率上去了没啥问题就可以发版本了。
from cos-php-sdk-v5.
Good,thank you for advice
from cos-php-sdk-v5.
Related Issues (20)
- 新版本不支持更新文档属性吗 HOT 1
- GuzzleHttp\\Psr7\\Utils' not found HOT 4
- 2.5.4 signHost默认赋值 异常 HOT 1
- 什么时候能加上 OCR 接口呢? HOT 7
- 包含尖括号<>会失败 HOT 1
- curl_multi_add_handle() expects parameter 2 to be resource, object given HOT 2
- laravel框架使用UTC时间的问题
- PHP 8.1 无法使用 listObjects() HOT 9
- 功能缺陷,不合理
- 代码告警 HOT 1
- php8.2.3 不支持
- php8.2.3 The Signature you specified is invalid. HOT 4
- 请问有request_id吗
- PHP Deprecated: Creation of dynamic property Qcloud\Cos\Signature::$token is deprecated
- Call to a member function children() on bool
- putObject 返回值,Location 如何添加上 协议 https HOT 1
- Bucket 接口缺少部分支持 HOT 1
- ListBuckets接口返回结果不一致
- 不支持返回后台配置的源域名 HOT 1
- Creation of dynamic property Qcloud\\Cos\\MultipartUpload::$concurrency is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cos-php-sdk-v5.