无法从网址获取文件

时间:2017-03-07 10:37:00

标签: botframework

这是botframework仪表板(问题)中抛出的错误。

{"error":{"message":"(#100) Failed to fetch the file from the url","type":"OAuthException","code":100,"error_subcode":2018008,"fbtrace_id":"CyiaDTS8Rjz"}}

当我尝试发布videoCard时会发生这种情况。

我的代码:

  resultMessage.AttachmentLayout = AttachmentLayoutTypes.Carousel;
  resultMessage.Attachments = new List<Attachment>();
  VideoCard video = new VideoCard()
  {
   Title = "title",
   Media = getMedia(activities[counter]),
  };
 resultMessage.Attachments.Add(video.ToAttachment());

和getMedia功能:

public IList<MediaUrl> getMedia (ActivityModel model)
        {
            IList<MediaUrl> mediaUrl = new List<MediaUrl>();
            MediaUrl item = new MediaUrl();
            item.Url = model.DocumentPath;
            mediaUrl.Add(item);
            return mediaUrl;
        }

model.Document path is simple youtube video ...

有什么想法吗?

0 个答案:

没有答案