Closed ReeseJones closed 5 years ago
@ReeseJones Thank you for pointing out this issue. I have submitted a PR for this issue. Can you please confirm if it resolves your issue. We will add this fix to our next release in a couple of weeks.
@ReeseJones Can you please let us know what is the error string that is being passed to JSON.stringify(error) that ended up causing circular reference error?
We have merged the PR. I will update this issue with the version details when we release. Closing this issue for now.
in adal-angular.js on line 318 there is the following line:
The stateChangeErrorHandler sometimes receives error objects containing circular references which causes the stringify to throw, and obfuscate the errors that are actually happening.
It ends up looking kind of like this.
In our case we had a transition from one state to another while there was an ongoing transition already which produces an error correctly, however it wasn't obvious because because this state change error handler couldnt stringify the error was and throwing in of itself.