我在一个公司的Symphony聊天系统上注册了一个帐户,并被提供了一个子域(xxx.symphony.com)和一个streamId (我是通过登录聊天室、单击消息的日期戳并查看消息状态窗格找到的)。
我一直在遵循Embedded Chat Module - Direct iFrame Rendering的说明,目的是将Symphony聊天嵌入到网页中。
我已经在我的网页上放置了一个带有适当的子域和streamId的iFrame。
当页面加载时,我收到许多Javascript错误:
TypeError: Cannot read property 'sandbox' of undefined
...
TypeError: this.account.getTheme is not a function
...
TypeError: Cannot read property 'getExtension' of undefined
r {message: "Internal Server Error", name: "HTTPError", stack: "Error↵ at new r (https://<MY SUBDOMAIN>.symphony.com…s?4a001d68050fb0fd4c0d:85:984)↵ at <anonymous>", lifecycle: {…}}
lifecycle
:
{res: {…}, req: {…}}
message
:
"Internal Server Error"
name
:
"HTTPError"
stack
:
"Error↵ at new r (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:114:11278)↵ at r (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:171:606811)↵ at a (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:85:72778)↵ at a._settlePromiseFromHandler (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:85:46184)↵ at a._settlePromise (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:85:46984)↵ at a._settlePromise0 (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:85:47683)↵ at a._settlePromises (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:85:49010)↵ at i._drainQueue (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:85:2790)↵ at i._drainQueues (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:85:2851)↵ at drainQueues (https://<MY SUBDOMAIN>.symphony.com/embed/bundle.js?4a001d68050fb0fd4c0d:85:984)↵ at <anonymous>"
__proto__
:
Error和一个500错误:
https://<MY SUBDOMAIN>.symphony.com/webcontroller/api/v3/im/session?threadid=<MY THREAD ID> 500 (Internal Server Error)谁知道我在这里可能做错了什么,以及如何修复它?
看起来Javascript可能没有正确加载,所以可能存在某种跨域问题和/或我需要的令牌。
(注意:我将很快联系Symphony的支持人员,如果我以这种方式找到解决方案,我一定会发布它。)
发布于 2018-08-10 17:19:48
我不确定你使用了什么iframe输入,如果你找到了解决方案,我相信你已经找到了。
要提供帮助并提供示例,请参阅下面的内容。
iframe嵌入式聊天模块:
<html><head><title>Public</title>
</head><body>
<iframe src="https://<privatePod>.symphony.com/embed/?streamId=<streamID in base64>&module=room&mode=light&font=xsmall" height="800" width="100%"></iframe>
</body></html>用于获取URLSafe Base64会话ID的:
/替换为下划线_-+任何尾随等号=例如,的URLSafe Base64编码
lX1hwfmQ+AK/k/a/BB0y2n///q2+0KfbdA==转换为
lX1hwfmQ-AK_k_a_BB0y2n___q2-0KfbdAhttps://stackoverflow.com/questions/47874229
复制相似问题