question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

POS App set to root domain issue

See original GitHub issue

Describe the problem/bug Setting policy > display POS app on website root gives 500 (for the root domain).

Your environment

  • Version of BTCPay Server: v1.0.5.0
  • Deployment method: LunaNode

Logs (if applicable)

2020-06-27 01:04:04.030 +00:00 [INF] BTCPayServer.Services.PoliciesSettings
2020-06-27 01:04:12.722 +00:00 [ERR] The view '/Views/AppsPublic/ViewPointOfSale.cshtml' was not found. Searched locations: ["/Views/AppsPublic/ViewPointOfSale.cshtml"]
2020-06-27 01:04:12.800 +00:00 [ERR] Connection id "0HM0Q6NB80FFC", Request id "0HM0Q6NB80FFC:00000001": An unhandled exception was thrown by the application.
System.InvalidOperationException: The view '/Views/AppsPublic/ViewPointOfSale.cshtml' was not found. The following locations were searched:
/Views/AppsPublic/ViewPointOfSale.cshtml
   at Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable`1 originalLocations)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
   at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|29_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at BTCPayServer.Hosting.BTCPayMiddleware.Invoke(HttpContext httpContext) in /source/BTCPayServer/Hosting/BTCpayMiddleware.cs:line 87
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at BTCPayServer.Hosting.HeadersOverrideMiddleware.Invoke(HttpContext httpContext) in /source/BTCPayServer/Hosting/HeadersOverrideMiddleware.cs:line 31
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpAp

To Reproduce Steps to reproduce the behavior:

  1. Go to: Server Settings > Policies
  2. Click on: Display app on website root
  3. Select from dropdown: Any POS app
  4. Click Save
  5. Open browser to root domain to see POS App
  6. Page gives 500 error

Expected behavior POS App appears on the root domain

Actual behavior 500 error shows for root domain

Additional context Setting a Crowdfund App on root domain does not have the issue

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
NicolasDoriercommented, Jun 27, 2020

fixed in 1.0.5.2

0reactions
britttttkcommented, Jun 27, 2020

@dennisreimann @NicolasDorier on v1.0.5.1 now pos is fixed but crowdfund on root does not work for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting the Shopify POS app
If you experience performance issues with the Shopify POS app, then there are some common steps that you can take to troubleshoot them....
Read more >
Custom Domain for Static Web App that isn't www possible?
I have created a new Static Web App at https://calm-river-02866fe10.azurestaticapps.net/ and want to define a custom domain for it, ...
Read more >
Configure, install, and activate Modern POS (MPOS)
Issue the certificate using the previously generated root certificate using a command such as $ openssl x509 -req -in server.csr -CA rootCA.pem ...
Read more >
Apps FAQ
Using an app on the root domain of BTCPay Server means you'll have to access the login and other pages manually. The easiest...
Read more >
Root domain not resolving correctly - Apple Community
My client is pointing to my server for DNS (although the client is wireless, and in Leopard the primary DNS is hard-coded to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found