【问题标题】:ElasticTranscoder gem throws vague error when creating jobElasticTranscoder gem 在创建作业时抛出模糊错误
【发布时间】:2021-11-23 04:37:35
【问题描述】:

尝试在 AWS Transcoder 管道中创建作业时,我得到 Aws::ElasticTranscoder::Errors::BadRequest。我很确定我的参数是正确的,但我仍然遇到这个模棱两可的错误。有人遇到过吗?

我的电话是这样的

client = Aws::ElasticTranscoder::Client.new(
      access_key_id: Rails.application.credentials.aws_s3_access_key_id,
      secret_access_key: Rails.application.credentials.aws_s3_secret_access_key,
      region: Rails.application.credentials.aws_s3_region,
      endpoint: 'https://s3.us-west-2.amazonaws.com'
    )


params = {:pipeline_id=>"xxxxxxxxxxxxx-xxxxxx",
 :inputs=>
  [{:key=>"test/folder1/0.mp4", :frame_rate=>"auto", :resolution=>"auto", :aspect_ratio=>"auto", :interlaced=>"auto", :container=>"auto"},
   {:key=>"test/folder1/1.mp4", :frame_rate=>"auto", :resolution=>"auto", :aspect_ratio=>"auto", :interlaced=>"auto", :container=>"auto"}],
 :output=>{:key=>"final.mp4", :preset_id=>"1351620000001-000010"}}

client.create_job(params)

管道处于活动状态并且位于同一区域。 s3 存储桶也是如此。

【问题讨论】:

    标签: ruby amazon-web-services amazon-elastic-transcoder aws-elastictranscoder


    【解决方案1】:

    原来是客户端中的endpoint 参数造成了这个混乱......只需将其删除。希望这会提示某人并节省几个小时的调试时间。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-11-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-17
      • 1970-01-01
      • 2013-01-19
      相关资源
      最近更新 更多