element-web: Sticker Widget Loading Error with own Integration Server
Description
Using the riot desktop electron app for linux it is not possible (for some accounts) to use the sticker widget with my own integration server. The same account in the riot-web can use the sticker at the same integration server, while other users in the riot electron linux app are also able to use them.
Steps to reproduce
(Not working for every account)
- Install riot electron app
- configure
config.jsonand update integeration server urls - login and try to open the sticker widget in any room
Describe how what happens differs from what you expected.
In riot-web I get a “popup” window to allow to verify my identity to the integration server. it is missing in the app with my account. With the js console I received the following errors:
bundle.js:2 Non-scalar manager, not setting scalar token! {parse: ƒ, resolve: ƒ, resolveObject: ƒ, format: ƒ, Url: ƒ}
and
bundle.js:2 Uncaught (in promise) Error: No matching user widget to form security key
at Function.getWidgetSecurityKey (bundle.js:2)
at d._onOpenIdRequest (bundle.js:2)
at m.onPostMessage (bundle.js:2)
Things I tried to solve this issue:
- deleting the
m.widgetcontent using the/devtools - dis- and re-enable the integration server
- empty cache and reload
Version information
- Platform: desktop in comparison to the web app
For the web app:
- Browser: Firefox
- OS:
Linux 5.3.0-46-generic #38-Ubunt 2020 x86_64 x86_64 x86_64 GNU/Linux - URL: riot-web version:
c4f3d39d4229-react-c4f3d39d4229-js-c4f3d39d4229olm version: 3.1.3
For the desktop app:
- OS:
Linux 5.3.0-46-generic #38-Ubunt 2020 x86_64 x86_64 x86_64 GNU/Linux - Version: riot-web version: 1.5.15 olm version: 3.1.3
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 15 (8 by maintainers)
Right, I can reproduce this now. The key missing part was
Non-scalar widget, not setting scalar token!which is a bit of an awkward line. It’s saying that the integration manager in the config doesn’t match the sticker picker, so it is refusing to give it the security token. Later, Dimension requests the token explicitly and that falls apart.