技术文章 - CS338417
从媒体实体的 GetProxyURL 方法返回的 URL 未打开,日志中显示“无法提供媒体”消息,并显示错误“Base 不包括目标”
已修改: 14-Dec-2023
适用于
- ThingWorx Platform 8.5 to 9.4
说明
- 从媒体实体的GetProxyURL方法返回并附加到ThingWorx服务器主机名的 URL 无法打开,显示“无法提供媒体”消息
- 从Thingworx打开时无法下载更改请求附件
- 媒体实体使用 URL 进行配置,如此链接的帮助中心页面中所述 - https://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/index.html#page/ThingWorx%2FHelp%2FComposer%2FVisualization%2FMediaEntities。 html%23
- 执行服务时返回错误“ Base does not include target ”,定义如下:
var proxy = MediaEntities["DynamicTestMedia"].GetProxyUrl( { targetUrl:URL, clientFollowsRedirect: true /* BOOLEAN */, isAbsoluteTargetUrl: true /* BOOLEAN */, }); result = 'http://localhost:8080' +proxy;
这是文章 338417 的 PDF 版本,可能已过期。最新版本 CS338417