You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when I do same request on the other Node Server:
GET http://localhost:15001/api/Config?appId=123
I get 500 Internal Server Error, below is AgileConfig's produces error output:
2025-03-05T18:30:18.393185658Z fail: AgileConfig.Server.Common.ExceptionHandlerMiddleware[0]
2025-03-05T18:30:18.393216270Z When ::ffff:172.26.0.1 request /api/Config error , but not handled .
2025-03-05T18:30:18.393218388Z Object reference not set to an instance of an object.
2025-03-05T18:30:18.393219577Z at AgileConfig.Server.Apisite.Models.Binders.EnvQueryStringBinder.BindModelAsync(ModelBindingContext bindingContext) in /src/AgileConfig.Server.Apisite/Models/Binders/EnvQueryStringBinder.cs:line 17
2025-03-05T18:30:18.393220768Z at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinder.BindModelAsync(ModelBindingContext bindingContext)
2025-03-05T18:30:18.393222075Z at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value, Object container)
2025-03-05T18:30:18.393223251Z at Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
2025-03-05T18:30:18.393224723Z --- End of stack trace from previous location ---
2025-03-05T18:30:18.393225724Z at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2025-03-05T18:30:18.393226943Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2025-03-05T18:30:18.393228079Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
2025-03-05T18:30:18.393229119Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2025-03-05T18:30:18.393230278Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
2025-03-05T18:30:18.393237055Z --- End of stack trace from previous location ---
2025-03-05T18:30:18.393238092Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
2025-03-05T18:30:18.393239923Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
2025-03-05T18:30:18.393241004Z at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
2025-03-05T18:30:18.393241973Z at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2025-03-05T18:30:18.393242987Z at AgileConfig.Server.Apisite.Websocket.WebsocketHandlerMiddleware.Invoke(HttpContext context, IAppBasicAuthService appBasicAuth, IConfigService configService, IRegisterCenterService registerCenterService, IServiceInfoService serviceInfoService) in /src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs:line 123
2025-03-05T18:30:18.393244212Z at AgileConfig.Server.Apisite.UIExtension.ReactUiMiddleware.Invoke(HttpContext context) in /src/AgileConfig.Server.Apisite/UIExtension/ReactUIMiddleware.cs:line 118
2025-03-05T18:30:18.393245265Z at AgileConfig.Server.Common.ExceptionHandlerMiddleware.Invoke(HttpContext context) in /src/AgileConfig.Server.Common/ExceptionHandlerMiddleware.cs:line 27
2025-03-05T18:30:18.393246318Z System.NullReferenceException: Object reference not set to an instance of an object.
2025-03-05T18:30:18.393247304Z at AgileConfig.Server.Apisite.Models.Binders.EnvQueryStringBinder.BindModelAsync(ModelBindingContext bindingContext) in /src/AgileConfig.Server.Apisite/Models/Binders/EnvQueryStringBinder.cs:line 17
2025-03-05T18:30:18.393248384Z at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinder.BindModelAsync(ModelBindingContext bindingContext)
2025-03-05T18:30:18.393249391Z at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value, Object container)
2025-03-05T18:30:18.393250528Z at Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
2025-03-05T18:30:18.393251639Z --- End of stack trace from previous location ---
2025-03-05T18:30:18.393252771Z at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2025-03-05T18:30:18.393253932Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2025-03-05T18:30:18.393255075Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
2025-03-05T18:30:18.393256073Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2025-03-05T18:30:18.393258622Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
2025-03-05T18:30:18.393259601Z --- End of stack trace from previous location ---
2025-03-05T18:30:18.393260560Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
2025-03-05T18:30:18.393261642Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
2025-03-05T18:30:18.393262710Z at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
2025-03-05T18:30:18.393263688Z at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2025-03-05T18:30:18.393264690Z at AgileConfig.Server.Apisite.Websocket.WebsocketHandlerMiddleware.Invoke(HttpContext context, IAppBasicAuthService appBasicAuth, IConfigService configService, IRegisterCenterService registerCenterService, IServiceInfoService serviceInfoService) in /src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs:line 123
2025-03-05T18:30:18.393265929Z at AgileConfig.Server.Apisite.UIExtension.ReactUiMiddleware.Invoke(HttpContext context) in /src/AgileConfig.Server.Apisite/UIExtension/ReactUIMiddleware.cs:line 118
2025-03-05T18:30:18.393267184Z at AgileConfig.Server.Common.ExceptionHandlerMiddleware.Invoke(HttpContext context) in /src/AgileConfig.Server.Common/ExceptionHandlerMiddleware.cs:line 27
2025-03-05T18:30:18.393459928Z fail: Microsoft.AspNetCore.Server.Kestrel[13]
2025-03-05T18:30:18.393470793Z Connection id "0HNAS291A3M9C", Request id "0HNAS291A3M9C:00000001": An unhandled exception was thrown by the application.
2025-03-05T18:30:18.393472388Z System.NullReferenceException: Object reference not set to an instance of an object.
2025-03-05T18:30:18.393473575Z at AgileConfig.Server.Apisite.Models.Binders.EnvQueryStringBinder.BindModelAsync(ModelBindingContext bindingContext) in /src/AgileConfig.Server.Apisite/Models/Binders/EnvQueryStringBinder.cs:line 17
2025-03-05T18:30:18.393476569Z at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinder.BindModelAsync(ModelBindingContext bindingContext)
2025-03-05T18:30:18.393477628Z at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value, Object container)
2025-03-05T18:30:18.393478776Z at Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
2025-03-05T18:30:18.393480083Z --- End of stack trace from previous location ---
2025-03-05T18:30:18.393481114Z at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2025-03-05T18:30:18.393482353Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2025-03-05T18:30:18.393487756Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
2025-03-05T18:30:18.393494665Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2025-03-05T18:30:18.393496120Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
2025-03-05T18:30:18.393497237Z --- End of stack trace from previous location ---
2025-03-05T18:30:18.393498716Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
2025-03-05T18:30:18.393499898Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
2025-03-05T18:30:18.393500997Z at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
2025-03-05T18:30:18.393501974Z at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2025-03-05T18:30:18.393503057Z at AgileConfig.Server.Apisite.Websocket.WebsocketHandlerMiddleware.Invoke(HttpContext context, IAppBasicAuthService appBasicAuth, IConfigService configService, IRegisterCenterService registerCenterService, IServiceInfoService serviceInfoService) in /src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs:line 123
2025-03-05T18:30:18.393504291Z at AgileConfig.Server.Apisite.UIExtension.ReactUiMiddleware.Invoke(HttpContext context) in /src/AgileConfig.Server.Apisite/UIExtension/ReactUIMiddleware.cs:line 118
2025-03-05T18:30:18.393505393Z at AgileConfig.Server.Common.ExceptionHandlerMiddleware.Invoke(HttpContext context) in /src/AgileConfig.Server.Common/ExceptionHandlerMiddleware.cs:line 27
2025-03-05T18:30:18.393506432Z at AgileConfig.Server.Common.ExceptionHandlerMiddleware.Invoke(HttpContext context) in /src/AgileConfig.Server.Common/ExceptionHandlerMiddleware.cs:line 54
2025-03-05T18:30:18.393507465Z at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
It seems Node Server's environment list is null. Any help is highly appreciated.
Thank you.
The text was updated successfully, but these errors were encountered:
Hi @tanisman
Thanks for using agileconfig.
It had a bug when a node is not adminconsole it can not init enviornment correctly.
I just fix it now.
You can update the image to latest or tag: v-1.9.12.
Hi,
I set up the Agile Config using following docker compose:
I create one App (id: 123) and added a config to that App (key: key1)
when I use GET rest api on the Node Server with the console, everything works as expected:
GET http://localhost/api/Config?appId=123
but when I do same request on the other Node Server:
GET http://localhost:15001/api/Config?appId=123
I get 500 Internal Server Error, below is AgileConfig's produces error output:
It seems Node Server's environment list is null. Any help is highly appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: