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
[NullReferenceException: object reference not set to an instance of an object.]
WebSharper.Sitelets.ServerInferredOperators.IWithCustomErrors(Type typ, InferredRouter item) +164
WebSharper.Sitelets.Router.IInferWithCustomErrors() +57
WebSharper.Sitelets.SiteletModule.InferWithCustomErrors(FSharpFunc`2 handle) +81
Let me know if I can help debug this.
The text was updated successfully, but these errors were encountered:
As a quick workaround, try Sitelet.Infer<ParseRequestResult<T>> instead, where T is your endpoint type.
This should be equivalent, only there is a bug currently in InferWithCustomErrors.
Ok, sorry, not entirely equivalent, because InferWithCustomErrors also fixes up the Context object to create links for type T instead of ParseRequestResult<T>.
You can do this too with let ctx = (Context.Map ParseRequestResult.Success ctx).
Here's a relevant portion of the backtrace:
Let me know if I can help debug this.
The text was updated successfully, but these errors were encountered: