Giter Site home page Giter Site logo

Comments (7)

Sdelausnay avatar Sdelausnay commented on August 24, 2024

Found some additional logs

2024-04-15T14:24:18  PID[5332] Information 04-15 14:24:18 Error: Unexpected exception in agent main process. Details: Microsoft.ServiceProfiler.Utilities.AppIdNotFoundException: Unable to find AppId for iKey:
2024-04-15T14:24:18  PID[5332] Information    at Microsoft.ServiceProfiler.Utilities.AppInsightsProfileFetcher.<FetchProfileAsync>d__3.MoveNext()
2024-04-15T14:24:18  PID[5332] Information --- End of stack trace from previous location where exception was thrown ---
2024-04-15T14:24:18  PID[5332] Information    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2024-04-15T14:24:18  PID[5332] Information    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2024-04-15T14:24:18  PID[5332] Information    at Microsoft.ServiceProfiler.DiagnosticsAgent.Program.GetApplicationInsightsAppId(String instrumentationKey, String appInsightsEndpoint)
2024-04-15T14:24:18  PID[5332] Information    at Microsoft.ServiceProfiler.DiagnosticsAgent.Program.Main(String[] cmdArgs)

from chat-copilot.

Sdelausnay avatar Sdelausnay commented on August 24, 2024

Seems to be an authentication issue, where the Front-end want to connect to the backend using authentication but is not able to get the information. Followed all the step to create the App registrations but nothing seems to be working.

In the browser, I have following exception:

Uncaught (in promise) BrowserAuthError: uninitialized_public_client_application: You must call and await the initialize function before attempting to call any other MSAL API.  For more visit: aka.ms/msaljs/browser-errors
    at c (BrowserAuthError.ts:351:12)
    at G (BrowserUtils.ts:136:15)
    at lt.handleRedirectPromise (StandardController.ts:333:9)
    at d.handleRedirectPromise (PublicClientApplication.ts:259:32)
    at index.tsx:44:39

from chat-copilot.

Sdelausnay avatar Sdelausnay commented on August 24, 2024

Seems to be a Front-end issue. In mean time recreated the App registration and also tried to run it locally with authentication and I'm getting the same error. Adding some logs to the Frontend revelated following issue:

Received error while retrieving access token: BrowserAuthError: no_account_error: No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.

from chat-copilot.

hsirtl avatar hsirtl commented on August 24, 2024

This issue seems to be related to issue #918. I had the same "Connecting..."-behavior (both while running with docker compose and with running it on Azure App Service). Changing the auth-code as described there solved it for me.

from chat-copilot.

Sdelausnay avatar Sdelausnay commented on August 24, 2024

I found the issue, seems the @azure/msal-browser version currently in the master branch is having the issue.

Still further investigating, but when I update the package, seems to be working.

from chat-copilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.