fullstackhero/blazor-wasm-boilerplate

ApiHelper returning NullReferenceException

1dveeran opened this issue · 4 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.