leapp icon indicating copy to clipboard operation
leapp copied to clipboard

Cannot read properties of undefined (reading 'split')

Open marcorossi-cb opened this issue 2 years ago • 3 comments

Describe the bug When attempting to open connection on browser (cmd + click) the above error message is encountered. This error is shown only for IAM User provider

Leapp Version Leapp Version: 0.18.0

To Reproduce Steps to reproduce the behavior:

  1. Create a new Amazon AWS Session
  2. Choose AWS IAM User access method
  3. Start connection
  4. Cmd + click
  5. See error

Expected behavior Open collection in browser

Screenshots Schermata 2023-06-26 alle 10 55 05 Schermata 2023-06-26 alle 10 55 14

Desktop (please complete the following information):

  • OS: macOS Monterey
  • OS Version: 12.3
  • Leapp Version: 0.18.0

Additional context Basically I'm trying to open multi connections that come from IAM User or IAM Single Sign-On

marcorossi-cb avatar Jun 26 '23 09:06 marcorossi-cb

Hello @marcorossi-cb, thanks for the feedback. At the moment, we don't support opening the AWS web console for AWS IAM User sessions, so the shortcut should be disabled and this behaviour is in fact wrong. However, I tried to replicate the issue on my setup and the function is wrongly activated but it doesn't prompt this error. Can you provide us with the logs? You can find them on macOS here ~/Library/Logs/Leapp/log.electronService.log. Finally, are you using the multi-console web extension? Thanks again for the feedback!

rick-rtt avatar Jun 28 '23 08:06 rick-rtt

Hi @rick-rtt, the error is the following:

[2023-06-28 12:54:15.723] [info]  [renderer] Starting Session
[2023-06-28 12:54:19.615] [info]  [renderer] Getting Web Console Url
[2023-06-28 12:54:20.115] [error] [renderer] [ErrorService] TypeError: Cannot read properties of undefined (reading 'split')
    at file:///Applications/Leapp.app/Contents/Resources/app.asar/dist/leapp-client/main.cfc5eee862260845.js:12613:42
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (file:///Applications/Leapp.app/Contents/Resources/app.asar/dist/leapp-client/main.cfc5eee862260845.js:193738:24)
    at _next (file:///Applications/Leapp.app/Contents/Resources/app.asar/dist/leapp-client/main.cfc5eee862260845.js:193760:9)
    at _ZoneDelegate.invoke (file:///Applications/Leapp.app/Contents/Resources/app.asar/dist/leapp-client/polyfills.23a56c6b24ce7905.js:424:158)
    at Object.onInvoke (file:///Applications/Leapp.app/Contents/Resources/app.asar/dist/leapp-client/main.cfc5eee862260845.js:148940:25)
    at _ZoneDelegate.invoke (file:///Applications/Leapp.app/Contents/Resources/app.asar/dist/leapp-client/polyfills.23a56c6b24ce7905.js:424:46)
    at Zone.run (file:///Applications/Leapp.app/Contents/Resources/app.asar/dist/leapp-client/polyfills.23a56c6b24ce7905.js:208:37)
    at file:///Applications/Leapp.app/Contents/Resources/app.asar/dist/leapp-client/polyfills.23a56c6b24ce7905.js:1300:28
    at _ZoneDelegate.invokeTask (file:///Applications/Leapp.app/Contents/Resources/app.asar/dist/leapp-client/polyfills.23a56c6b24ce7905.js:451:171)

Yes, I'm using the multi-console web extension. I tried do disabled it and recieved this error on web interface Only federation tokens or assume role tokens may be used for federated login. Please contact your administrator.

marcorossi-cb avatar Jun 28 '23 11:06 marcorossi-cb

Is this issue now fixed @marcorossi-cb ?

andreacavagna01 avatar Dec 29 '23 13:12 andreacavagna01