这是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 ...
有什么想法吗?