Error connecting to /.well-known/openid-configuration: Bad Gateway
Recently, was playing with the Serialization DevEx environment configuration dll. During one of my experiments, the login method failed to work all of a sudden.
- Tried restarting IIS
- Tried machine restart
- Cleared all cookies and restarted to be double sure!
Then, decided to take a more developer-oriented analytical approach to solve the problem. My code actually invoked the login method part of EnvironmentConfiguration. I added a task wait so that the method could execute successfully. After this, the code jumped to the exception block:
Holy Grail! My good old COM Exception!
I could now access the id server after an IIS restart:
Error:
Unhandled Exception: Sitecore.Framework.Runtime.Licensing.Exceptions.SitecoreLicenseInvalidOperationException: Invalid or expired license. [File]
at Sitecore.Framework.Runtime.Licensing.LicenseValidator.LoadLicense(License license)
at Sitecore.Framework.Runtime.Commands.SitecoreHostCommand.OnExecuteAsync(CommandLineApplication app)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.InvokeAsync(MethodInfo method, Object instance, Object[] arguments)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync[TApp](CommandLineContext context, CancellationToken cancellationToken)
at Sitecore.Program.<Main>(String[] args)
Comments
Post a Comment