fullstackhero / blazor-wasm-boilerplate

Clean Architecture Boilerplate Template for .NET 6.0 Blazor WebAssembly built for FSH WebAPI with the goodness of MudBlazor Components.

Home Page:https://fullstackhero.net/blazor-webassembly-boilerplate/general/getting-started/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ApiHelper returning NullReferenceException

1dveeran opened this issue · comments

First, thank you for the boilerplate. I am facing an issue while using the ApiHelper.

I am trying to call an API with below method, but ApiHelper is returning NullReferenceException. But i can able to call the same API using swagger successfully.

image

image

This would probably need more debugging from your side. Which is the exact variable that becomes null? Is it SMSClient ? or something else?

It's SMSClient is becoming null.

was SMSClient autogenerated using the NSWAG CLI command?

I forgot to add [Inject] while declaring it.

Closing this issue. Thanks for the support.

I am using NSWAG GUI, it works perfectly fine.