簡體   English   中英

無法讀取未定義的屬性“ listPipelines”

[英]Cannot read property 'listPipelines' of undefined

我有這樣的功能

vulog.info(''+ ecoder.client);
  ecoder.client.listPipelines({}, function(err, data){
  vulog.info('Inside vuaws.listPipelines');
  if (err) {
    vulog.error('Error in getting pipelines');
    vulog.error(err);
    return;
  }
  vulog.debug(data);
  interviewpipeid[0] = data.Pipelines[0].Id;
  interviewpipeid[1] = data.Pipelines[1].Id;
  vulog.info('Interview Pipeline ID is: ' + interviewpipeid);

 });

但是,當我運行此示例時,出現此錯誤。

無法讀取未定義的屬性“ listPipelines”

我該如何調試此特定問題,請有人向我解釋這里發生了什么。

編碼器來自AWS

var ecoder = new AWS.ElasticTranscoder(vuconst.encoderconfig);

我對nodejs不太了解

AWS ElasticTranscoder類似乎沒有client屬性。 但是,它確實在ElasticTranscoder類中直接具有listPipelines函數 您可以嘗試直接調用ecoder.listPipelines而不使用.client

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM