0

このエラーが発生し続ける理由を誰かが知っていますか:

    JSONResponseError: 400 Bad Request
    {u'Message': u'Start of list found where not expected'}

APIで指定された出力ディクショナリを使用したときは正常に機能していましたが、ディクテーションの出力リストに切り替えて以来、前述のエラーが発生しています。

ここに私が書いたコードがあります:

    transInput = {
    'Key': path,
    'FrameRate': 'auto',
    'Resolution': 'auto',
    'AspectRatio': 'auto',
    'Interlaced': 'auto',
    'Container': 'auto'
}
pprint (transInput)

#Create a job for each desired preset                                       
for pId, descrip in presets.iteritems():
  transOutput = {

        'PresetId': pId,
        'Rotate': 0,
        'ThumbnailPattern': 00001,
        'Key': path +"-" + descrip
        }

    outputs.append(transOutput)



try:
    transcode.create_job(pipelineId, transInput, outputs)
except Exception, e:
    print e
4

1 に答える 1