You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Net::Amazon::S3::Client调用initiate_multipart_upload报错求助

Net::Amazon::S3::Client调用initiate_multipart_upload报错问题

错误信息

Can't call method "findvalue" on an undefined value at /usr/local/share/perl5/Net/Amazon/S3/Operation/Object/Upload/Create/Response.pm line 17.

问题详情

  • 可正常执行对象put操作、列出存储桶等功能
  • Net::Amazon::S3::Client创建存储桶和对象的操作无异常
  • 此前使用Paws::S3库可成功对该存储桶初始化分片上传,但上传至约21%时会卡住,切换为Net::Amazon::S3::Client后触发上述错误

代码片段

use Net::Amazon::S3;
our $s3 = Net::Amazon::S3->new({
    aws_access_key_id  => $config{'access_key_id'},
    aws_secret_access_key => $config{'access_key'},
    retry => 1
});

our $s3client = Net::Amazon::S3::Client->new( s3 => $s3 );

my $bucket = $s3client->bucket( name => $bucketName );

my $s3object = $bucket->object( key => 'test.txt' );
print 'Key: ' . $s3object->key;

my $uploadId = $s3object->initiate_multipart_upload; 

内容的提问来源于stack exchange,提问作者Timothy R. Butler

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.09 00:45:35