Hi,
While creating a user I am getting below error. We are trying to evaluate OKTA as the IDP for Octopus.
Object reference not set to an instance of an object.
System.NullReferenceException
at Octopus.Server.Web.Api.Actions.UserCreateAction.Execute() in UserCreateAction.cs:line 34
at Octopus.Server.Web.Infrastructure.Api.Responder`1.Respond(TDescriptor options, NancyContext context) in Responder.cs:line 143
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at Octopus.Server.Web.Api.OctopusRestApiModule.<>c__DisplayClass0_0.<.ctor>b__0(Object o) in OctopusRestApiModule.cs:line 48
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)
Hi,
Looks like the object reference issue has been resolved now. Now the issue I am hitting at is below:
2017-05-18 02:15:21.5476 27 ERROR Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0.
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Octopus.Server.Extensibility.Authentication.OpenIDConnect.Issuer.IdentityProviderConfigDiscoverer.d__1.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Server.Extensibility.Authentication.OpenIDConnect.Web.UserAuthenticationAction`1.d__8.MoveNext()
Hi,
Thanks for getting in touch, I’ve checked the code and believe this is due to some incorrect error handling when the Issuer URL is incorrect. I’ve created an issue that you can follow on GitHub.
Regards
Shannon