Skip to content
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

PHP 8 使用SDK上传文件抛出异常 #191

Open
abusym opened this issue Sep 4, 2021 · 0 comments
Open

PHP 8 使用SDK上传文件抛出异常 #191

abusym opened this issue Sep 4, 2021 · 0 comments

Comments

@abusym
Copy link

abusym commented Sep 4, 2021

环境:PHP 8.0.3,SDK版本:2.4.2

代码:
$ossClient= new OssClient(self::ACCESS_KEY_ID, self::ACCESS_KEY_SECRET, self::OSS_END_POINT);
$ossClient->uploadFile(self::OSS_BUCKET, $oss_object_name, $temp_local_file_absolute_path);
异常信息:
[2021-09-04 08:26:23] local.ERROR: : RequestId: [{"file":"C:\Users\abusy\Desktop\youyu-esales\vendor\aliyuncs\oss-sdk-php\src\OSS\Result\Result.php","line":28,"function":"parseResponse","class":"OSS\Result\Result","type":"->","args":[]},{"file":"C:\Users\abusy\Desktop\youyu-esales\vendor\aliyuncs\oss-sdk-php\src\OSS\OssClient.php","line":1715,"function":"__construct","class":"OSS\Result\Result","type":"->","args":[{"OSS\Http\ResponseCore":{"header":{"oss-request-url":"[隐藏]","oss-redirects":0,"oss-stringtosign":"PUT\n\nimage/png\nSat, 04 Sep 2021 00:26:23 GMT\n/youyu-esales/7bff86bb7259d662123ec5f62a1b32de.png","oss-requestheaders":{"Accept-Encoding":"","Content-Type":"image/png","Date":"Sat, 04 Sep 2021 00:26:23 GMT","Host":"[隐藏]","Authorization":"[隐藏]"}},"body":null,"status":null}}]},{"file":"C:\Users\abusy\Desktop\youyu-esales\app\Base\Helper\AliyunOssClient.php","line":26,"function":"uploadFile","class":"OSS\OssClient","type":"->","args":
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant