Good morning everyone
I am developing v2 version of Kobi application which uses both web-idk and REST API.
Many times in an unpredictable way the click that opens the app panel, in the left vertical bar, does not work. The console reports this error.
4vendorSentry~applica.core~auth.8b07d16f64431856.js:1 Error: Cannot update the app, because the corresponding client ID 3458764528362411636 wasn't found.
at e.destroyIframeController (cmn~BoardSdk.380163e792da4247.js:1:285600)
at l (cmn~BoardSdk.380163e792da4247.js:1:245504)
at a.execute (VM12:70:174269)
at s.dispatch (VM12:70:176429)
at e.destroyPrevScope (cmn~BoardUI.desktop~BoardUI.mobile~BoardUI.webview.c82f802eef76553b.js:1:538073)
at e.compileContent (cmn~BoardUI.desktop~BoardUI.mobile~BoardUI.webview.c82f802eef76553b.js:1:537236)
at e.setScope (cmn~BoardUI.desktop~BoardUI.mobile~BoardUI.webview.c82f802eef76553b.js:1:535958)
at controller (cmn~BoardUI.desktop~BoardUI.mobile~BoardUI.webview.c82f802eef76553b.js:1:453549)
at Object.invoke (cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:26635)
at cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:60701
at ot (cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:51596)
at cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:45148
at cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:44361
at cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:47569
at r (cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:45510)
at m (cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:50768)
at cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:152813
at l.$digest (cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:101780)
at l.$apply (cmn~Board~angular.desktop~angular.webview.806952765e6bd029.js:2:103460)
at e.safeApply (cmn~angular.desktop~angular.webview.edbcee55d7e24d86.js:2:44966)
at l.<anonymous> (cmn~angular.desktop~angular.webview.edbcee55d7e24d86.js:2:45102)
at I (cmn~applica.core~auth~root.store.a30888f1a572f1e6.js:1:526)
at m (cmn~applica.core~auth~root.store.a30888f1a572f1e6.js:1:801)
at R (cmn~applica.core~auth~root.store.a30888f1a572f1e6.js:1:691) undefined
The code that activates the panel, copied from the examples, is very simple; it is shown below .
<!DOCTYPE html>
<html lang="en">
<head>
<title>"°'°Kobi"</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://unpkg.com/mirotone@2.0.0/dist/styles.css"
/>
<!-- Miro SDK -->
<script src="https://miro.com/app/static/sdk/v2/miro.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/javascript">
miro.board.ui.on('icon:click', () => {
miro.board.getUserInfo()
.then((userInfo)=>{
console.log('Starting °\'°Kobi ... ', userInfo)
miro.board.ui.openPanel({url:'/miro/main/'+ userInfo.id});
})
});
</script>
</body>
</html>
Can you give me some insight? Thank you in advance.
Alberto