microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
860 stars 366 forks source link

Can not login #9648

Closed lcc728 closed 9 months ago

lcc728 commented 9 months ago

Describe the bug

Version

Browser

OS

To Reproduce

Steps to reproduce the behavior:

  1. See error

Expected behavior

Sign-in Azure account

Screenshots

image

Additional context

When I click "Sign in to your Azure account", a java script error screen appears

InfinytRam commented 9 months ago

Hi @lcc728,

which version of bot framework composer are you using?

Have you had a chance to use the latest Composer nightly version to see if it addresses this issue?

lcc728 commented 9 months ago

Hello, The information is below Version: 2.1.2 Electron: 8.2.4 Chrome: 80.0.3987.165 NodeJS: 12.13.0 V8: 8.0.426.27-electron.0

I haven't tried the latest Composer nightly version yet

InfinytRam commented 9 months ago

@lcc728 , Could you please install and use the latest nightly version to see if it addresses this issue? https://github.com/microsoft/BotFramework-Composer-Nightlies/releases

lcc728 commented 9 months ago

I installed 1a93f21, but the issue persists.

InfinytRam commented 9 months ago

Thanks, I'm looking into this further.

InfinytRam commented 9 months ago

Hi @lcc728,

It appears I'm not able to reproduce this issue. I was able to successfully login into my Azure account in Composer.

Composer info: Version: 2.1.3-nightly.364675.1a93f21 Electron: 14.2.6 Chrome: 93.0.4577.82 NodeJS: 14.17.0 V8: 9.3.345.20-electron.0

image

image

image

InfinytRam commented 9 months ago

@lcc728, are you behind a proxy or restricted network access?

lcc728 commented 9 months ago

It's weird. I changed ISP and checked my laptop settings. There are no restrictions.

InfinytRam commented 9 months ago

What happens if you click yes on that "Script Error" popup error message window?

Also the steps to reproduce is not clear, are you facing this issue after login or when attempting to login?

InfinytRam commented 9 months ago

@lcc728,

Could you run composer in debug mode and attempt to reproduce the, issue then send us the logs for further investigation?

Here are the steps to run Composer in debug mode: https://gist.github.com/ramfattah/9d8de81608f10c28ea5d5a03d22a2b5b

lcc728 commented 9 months ago

Thank you for your help.

http://localhost:5000

2023-09-29T18:00:58.009Z composer:electron Server started at port: 5000 2023-09-29T18:00:58.010Z composer:electron Rendering application... GET / 200 10.910 ms - 953 2023-09-29T18:00:58.934Z composer:electron Initializing app updater... 2023-09-29T18:00:58.971Z composer:electron Initialized 2023-09-29T18:00:58.972Z composer:electron:app-updater Updates set to be retrieved from nightly repo. 2023-09-29T18:00:58.979Z composer:electron:app-updater Updating from nightly to nightly. Not allowing downgrade. Checking for update 2023-09-29T18:00:58.980Z composer:electron:app-updater Checking for updates... 2023-09-29T18:00:58.980Z composer:electron App updater initialized. POST /api/settings 200 2.488 ms - 43 GET /api/assets/locales/en-US.json 200 124.712 ms - - GET /api/extensions 304 1.083 ms - - 2023-09-29T18:00:59.715Z composer:extension-manager Including defaults in settings. GET /api/extensions/settings?_all 304 2.646 ms - - GET /api/featureFlags 304 1.847 ms - - GET /api/storages 304 1.227 ms - - GET /api/assets/templateFeedUrl 304 0.942 ms - - GET /api/storages/default/blobs?path=D%253A%252FUsers%252Fuser%252Fbot 304 6.123 ms - - GET /api/projects/recent 304 6.837 ms - - Update for version 2.1.3-nightly.364675.1a93f21 is not available (latest version: 2.1.3-nightly.364675.1a93f21, downgrade is disallowed). 2023-09-29T18:01:00.162Z composer:electron:app-updater Update not available: { version: '2.1.3-nightly.364675.1a93f21', releaseDate: '2023-08-17T05:44:41.092Z', githubArtifactName: 'electron.exe', path: 'electron.exe', sha512: 'uA3dItzf8JaYnuE+6HhhX88GaZy8KGukTMCtkkhedDhBQ6UcBFEkNVzJb9YuQATf2y760D4/B9tYuw9G6MPj4A==', releaseName: '1a93f21', releaseNotes: '

This is a PREVIEW build of Composer. Please consider it to be experimental and understand that there might be bugs.

' } 2023-09-29T18:01:00.162Z composer:electron:app-updater Resetting to idle... 2023-09-29T18:01:00.163Z composer:electron Rendered application. GET /api/utilities/checkNode 304 619.448 ms - - POST /api/assets/projectTemplates 200 560.896 ms - - 2023-09-29T18:01:00.708Z composer:electron [Windows] Main window is now showing. Processing deep link if any. GET /api/projects/feed 304 817.711 ms - - 2023-09-29T18:01:08.823Z composer:electron:one-auth PII logging enabled: false 2023-09-29T18:01:08.823Z composer:electron:one-auth Attempting to load oneauth module from D:\Users\user\AppData\Local\Programs\Bot Framework Composer\resources\app.asar.unpacked\oneauth. 2023-09-29T18:01:08.851Z composer:electron:one-auth Initializing... 2023-09-29T18:01:08.869Z composer:electron:one-auth Service initialized. 2023-09-29T18:01:08.869Z composer:electron:one-auth Logging user into ARM... 2023-09-29T18:01:09.374Z composer:electron:one-auth 3 [MSAL:0007] WARNING ReadAccountById:97 Account id is empty - account not found 2023-09-29T18:01:09.375Z composer:electron:one-auth 2 [MSAL:0007] ERROR ErrorInternalImpl:88 Created an error: 8xg43, StatusInternal::InteractionRequired, InternalEvent::None, Error Code 0, Context 'Could not find an account. Both local account ID and legacy MacOS user ID are not present' [OneAuth:Warning:9a8hm:d0faaf08-678e-4ba1-85eb-f49287148d92] HTTP status: 403 [OneAuth:Warning:9a8hm:d0faaf08-678e-4ba1-85eb-f49287148d92] HTTP status: 403 2023-09-29T18:01:11.833Z composer:electron:one-auth 3 [OneAuth:Warning:9a8hm:d0faaf08-678e-4ba1-85eb-f49287148d92] HTTP status: 403 [OneAuth:Error:835v1:d0faaf08-678e-4ba1-85eb-f49287148d92] (Code:2001) The resource is forbidden. [OneAuth:Error:835v1:d0faaf08-678e-4ba1-85eb-f49287148d92] (Code:2001) The resource is forbidden. [OneAuth:Warning:96w1t:d0faaf08-678e-4ba1-85eb-f49287148d92] Failed to get profile image from Graph [OneAuth:Warning:96w1t:d0faaf08-678e-4ba1-85eb-f49287148d92] Failed to get profile image from Graph 2023-09-29T18:01:11.836Z composer:electron:one-auth 2 [OneAuth:Error:835v1:d0faaf08-678e-4ba1-85eb-f49287148d92] (Code:2001) The resource is forbidden. 2023-09-29T18:01:11.836Z composer:electron:one-auth 3 [OneAuth:Warning:96w1t:d0faaf08-678e-4ba1-85eb-f49287148d92] Failed to get profile image from Graph 2023-09-29T18:01:18.467Z composer:electron:one-auth There was an error trying to log the user into ARM: { error: { toString: 'UserCanceled {"ErrorCode":"3402","Message":"User canceled sign in.","Tag":"7xh73"}', status: 7, diagnostics: { tag: '7xh73', errorCode: '3402', message: 'User canceled sign in.' } } } GET /api/auth/getTenants 500 9645.799 ms - 214

InfinytRam commented 9 months ago

Thanks @lcc728 for sending the logs.

To clarify, are you facing this issue when clicking the Sign in to your Azure account or after attempting to login with provided email/password?

lcc728 commented 9 months ago

Yes, the java script error window pops up after clicking "Sign in to your Azure account"

InfinytRam commented 9 months ago

@lcc728, Thanks.

These logs seems interesting:

Could you try clearing the Composer electron app cache to see if that help? View -> Toggle Developer Tools -> Application -> Storage -> Clear site data

image

InfinytRam commented 9 months ago

Closing due to inactivity.