d4software / QueryTree

Data reporting and visualization for your app
http://querytreeapp.com
GNU Lesser General Public License v3.0
335 stars 121 forks source link

Setting baseuri causes ArgumentException in Docker #116

Closed DarkAxi0m closed 2 years ago

DarkAxi0m commented 3 years ago

When ever i set the environment variable

Customization__BaseUri="/querytree"

I get the error

System.ArgumentException: The path in 'value' must start with '/'. (Parameter 'value'),

I've tried the docker images:

Any thoughts?

Sorry I'm not a ASP developer, but ill do my best help

Operating System: Amazon Linux 2 CPE OS Name: cpe:2.3:o:amazon:amazon_linux:2 Kernel: Linux 4.14.177-139.254.amzn2.x86_64 Architecture: x86-64 Docker Server Version: 19.03.6-ce

warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60],
      Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.,
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35],
      No XML encryptor configured. Key {2a35f850-a8a5-4ad4-ad7c-f3231c333e15} may be persisted to storage in unencrypted form.,
Hosting environment: Production,
Content root path: /app,
Now listening on: http://[::]:80,
Application started. Press Ctrl+C to shut down.,
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1],
      An unhandled exception has occurred while executing the request.,
System.ArgumentException: The path in 'value' must start with '/'. (Parameter 'value'),
   at Microsoft.AspNetCore.Http.PathString..ctor(String value),
   at QueryTree.Startup.<Configure>b__5_2(HttpContext context, Func`1 next) in /build/Web/Startup.cs:line 132,
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context),
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext),
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context),
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context),
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task),
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[3],
      An exception was thrown attempting to execute the error handler.,
System.ArgumentException: The path in 'value' must start with '/'. (Parameter 'value'),
   at Microsoft.AspNetCore.Http.PathString..ctor(String value),
   at QueryTree.Startup.<Configure>b__5_2(HttpContext context, Func`1 next) in /build/Web/Startup.cs:line 132,
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context),
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext),
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context),
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context),
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi),
fail: Microsoft.AspNetCore.Server.Kestrel[13],
      Connection id "0HM422L8PN969", Request id "0HM422L8PN969:00000001": An unhandled exception was thrown by the application.,
System.ArgumentException: The path in 'value' must start with '/'. (Parameter 'value'),
   at Microsoft.AspNetCore.Http.PathString..ctor(String value),
   at QueryTree.Startup.<Configure>b__5_2(HttpContext context, Func`1 next) in /build/Web/Startup.cs:line 132,
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context),
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext),
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context),
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context),
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task),
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi),
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task),
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application),
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.