How to fix the "Sorry, we ran into a problem loading this app" message when loading my app

Eduardo Sebas 5 Reputation points
2024-08-27T16:02:51.3266667+00:00

When i try to use my custom app in the "Microsoft 365" site i got this "error" message when my app starts loading User's image

This is not related to an issue in code, so searching for a failed request and i found this Screenshot 2567-08-27 at 9.50.01 a.m.

with an error message like:

The resource principal named URL_NAME was not found in the tenant named TENANT_NAME This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.

but i don't know if this failed request is related to the message displayed in the top of my app, because the app works as expected but i can't make the error message stop showing, also if I use this app in Microsoft Teams desktop app or Microsoft Teams web app the error message never appears

Does anyone know why that would happen?

Does anyone know if this failed request could be related to the error message in my app?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,746 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,207 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.