Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500 when calling GET TodoList method #688

Open
2 of 17 tasks
oscarfilho opened this issue Apr 16, 2023 · 1 comment
Open
2 of 17 tasks

Error 500 when calling GET TodoList method #688

oscarfilho opened this issue Apr 16, 2023 · 1 comment
Labels
question Further information is requested

Comments

@oscarfilho
Copy link

oscarfilho commented Apr 16, 2023

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

The issue was found for the following scenario:

Please add an 'x' for the scenario(s) where you found an issue

  1. Web app that signs in users
    1. with a work and school account in your organization: 1-WebApp-OIDC/1-1-MyOrg
    2. with any work and school account: /1-WebApp-OIDC/1-2-AnyOrg
    3. with any work or school account or Microsoft personal account: 1-WebApp-OIDC/1-3-AnyOrgOrPersonal
    4. with users in National or sovereign clouds 1-WebApp-OIDC/1-4-Sovereign
    5. with B2C users 1-WebApp-OIDC/1-5-B2C
  2. Web app that calls Microsoft Graph
    1. Calling graph with the Microsoft Graph SDK: 2-WebApp-graph-user/2-1-Call-MSGraph
    2. With specific token caches: 2-WebApp-graph-user/2-2-TokenCache
    3. Calling Microsoft Graph in national clouds: 2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph
  3. Web app calling several APIs 3-WebApp-multi-APIs
  4. Web app calling your own Web API
    1. with a work and school account in your organization: 4-WebApp-your-API/4-1-MyOrg
    2. with B2C users: 4-WebApp-your-API/4-2-B2C
    3. with any work and school account: 4-WebApp-your-API/4-3-AnyOrg
  5. Web app restricting users
    1. by Roles: 5-WebApp-AuthZ/5-1-Roles
    2. by Groups: 5-WebApp-AuthZ/5-2-Groups
  6. Deployment to Azure
  7. Other (please describe)

Repro-ing the issue

Repro steps

  1. I followed all the documentation at https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/blob/master/4-WebApp-your-API/4-1-MyOrg/README .md

  2. When I run the client program, the example is loaded in the browser.

  3. I authenticate to Microsoft with my organization account.

  4. When I access the https://localhost:44321/TodoList resource, an internal error occurs.

Expected behavior
Open resource page https://localhost:44321/TodoList displaying all to-do records.

Actual behavior
An internal error occurs when accessing the resource.

Possible Solution
No idea

Additional context/ Error codes / Screenshots
Erro

Any log messages given by the failure

Add any other context about the problem here, such as logs.

OS and Version?

Wiondows 11 Home

Versions

.Net 7.0
Microsoft Identity Web 2.6.1

Attempting to troubleshooting yourself:

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@jmprieur
Copy link
Contributor

jmprieur commented Jun 6, 2023

Did you enable logging on the todolist service to understand what happens?
See https://github.com/AzureAD/microsoft-identity-web/wiki/Logging

@jmprieur jmprieur added the question Further information is requested label Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants