Coder Social home page Coder Social logo

Comments (10)

assyadh avatar assyadh commented on June 3, 2024

Hi aussiearef@,

Your solution configuration file contains secrets. I would suggest removing them and revoking the app client id/secret key.

Here's a good tool to prevent that may from happening:

https://github.com/awslabs/git-secrets

from aws-aspnet-cognito-identity-provider.

aussiearef avatar aussiearef commented on June 3, 2024

Thanks @assyadh
I removed the secrets.

Update on the issue:
If I run the website using "dotnet run" or in Visual Studio 2019 Preview, I get the StackOverflow exception. However if I run the .exe file of the website, it works fine!
I am trying to get a dump file and see where the issue resides. So far I know that if I remove AddCognitoIdentity there will be no issue

from aws-aspnet-cognito-identity-provider.

aussiearef avatar aussiearef commented on June 3, 2024

Update:
So I have used some debuggers to see where the Stackoverflow is originated form. It turns out that stack overflow happens when a serialization/serialization happens .
As you see in the image below there is a cycle detected.

image

I guess one of your models has a self reference and so during serialization/deserializaion stackoverflow happens

from aws-aspnet-cognito-identity-provider.

aussiearef avatar aussiearef commented on June 3, 2024

I also ran a profiler and it shows that Identity.Cognito.dll has a self reference that chews up cpu

image

from aws-aspnet-cognito-identity-provider.

assyadh avatar assyadh commented on June 3, 2024

I am currently out of the office. I'll have a look when I'm back early January.

from aws-aspnet-cognito-identity-provider.

assyadh avatar assyadh commented on June 3, 2024

I am not able to reproduce the issue using your webapp. It works properly in VS2019/.NET Core 3.0 CLI as well as when running the exe directly.

Are you still hitting the issue?

from aws-aspnet-cognito-identity-provider.

gopinathrimc avatar gopinathrimc commented on June 3, 2024

I am having the same issue. I am just running the Sample project from here[1] in visual studio 2017 with .netcore 2.2. It runs for while but after a sometime, if i start a new instance from VS i get the stackoverflow exception. Then i have to kill my iis express instance, close the browser instance and restart VS to get it to work again.
@aussiearef where you able to resolve this issue?

[1] https://github.com/aws/aws-aspnet-cognito-identity-provider/tree/master/samples/Samples

from aws-aspnet-cognito-identity-provider.

assyadh avatar assyadh commented on June 3, 2024

Reopening due to additional reports.

from aws-aspnet-cognito-identity-provider.

assyadh avatar assyadh commented on June 3, 2024

Reopening due to additional reports.

from aws-aspnet-cognito-identity-provider.

assyadh avatar assyadh commented on June 3, 2024

Hi everyone,

I have just release a new version 0.9.02 that should solve the issue:

https://www.nuget.org/packages/Amazon.AspNetCore.Identity.Cognito/0.9.0.2

Please let me know how that works for you!

Hamza

from aws-aspnet-cognito-identity-provider.

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.