Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting baseuri causes ArgumentException in Docker #116

Closed
DarkAxi0m opened this issue Nov 6, 2020 · 1 comment
Closed

Setting baseuri causes ArgumentException in Docker #116

DarkAxi0m opened this issue Nov 6, 2020 · 1 comment
Labels

Comments

@DarkAxi0m
Copy link

DarkAxi0m commented Nov 6, 2020

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:

  • image: d4software/querytree:latest
  • image: d4software/querytree:develop
  • image: d4software/querytree:c63e66f

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
Copy link

stale bot commented Dec 19, 2020

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.

@stale stale bot added the wontfix label Dec 19, 2020
@stale stale bot closed this as completed Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant