Note that there are some explanatory texts on larger screens.

plurals
  1. POShow generic error message to users, but send detailed stack trace etc. to admin?
    text
    copied!<p>I recently came across this message when trying to do something on my production website:</p> <blockquote> <p><strong>Server Error in '/' Application.</strong></p> <p><em>You must supply either a card or a customer id</em></p> <p><strong>Description</strong>: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p> <p><strong>Exception Details</strong>: Stripe.StripeException: You must supply either a card or a customer id</p> <p><strong>Source Error</strong>: </p> <p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</p> <p><strong>Stack Trace</strong>: </p> <p>[StripeException: You must supply either a card or a customer id]<br> Stripe.Requestor.ExecuteWebRequest(WebRequest webRequest) +238<br> Stripe.Requestor.PostString(String url) +22<br> Stripe.StripeChargeService.Create(StripeChargeCreateOptions createOptions) +40<br> AwesomenessWeb.Controllers.CustomersController.PaymentPost(PurchaseType purchaseType, Int32 optionID, String stripeToken) in c:\a\src\AwesomenessWeb\AwesomenessWeb\Controllers\CustomersController.cs:599 lambda_method(Closure , ControllerBase , Object[] ) +193<br> System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14<br> System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary<code>2 parameters) +214<br> System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary</code>2 parameters) +27<br> System.Web.Mvc.&lt;>c_<em>DisplayClass15.b</em>_12() +55 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func<code>1 continuation) +253<br> System.Web.Mvc.&lt;&gt;c__DisplayClass17.&lt;InvokeActionMethodWithFilters&gt;b__14() +21 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList</code>1 filters, ActionDescriptor actionDescriptor, IDictionary<code>2 parameters) +191<br> System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324<br> System.Web.Mvc.Controller.ExecuteCore() +106<br> System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10<br> System.Web.Mvc.&lt;&gt;c__DisplayClassb.&lt;BeginProcessRequest&gt;b__5() +34<br> System.Web.Mvc.Async.&lt;&gt;c__DisplayClass1.&lt;MakeVoidDelegate&gt;b__0() +19<br> System.Web.Mvc.Async.&lt;&gt;c__DisplayClass8</code>1.b__7(IAsyncResult <em>) +10 System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62 System.Web.Mvc.&lt;>c</em>_DisplayClasse.b_<em>d() +48<br> System.Web.Mvc.SecurityUtil.b</em>_0(Action f) +7 System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60<br> System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9<br> System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9631764 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +155</p> <p>Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.19064</p> </blockquote> <p>Is there any way all of this information can be emailed to my email address.. and a generic page will be displayed to the user?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload