Cannot create GrpcChannel in Uno Platform WebAssembly (System.NullReferenceException) #1253
Unanswered
t-sorger
asked this question in
Q&A - General
Replies: 1 comment
-
Thanks for the info! I'm guessing the error happened during server setup, but not specifically wrt to the grpc-web JS client? 😃 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to do a sample of Uno Platform using gRPC-Web.
Therefore I got inspired by the content provided by this article. I followed the instructions of the article and created a BlazorApp which used a weather service with gRPC-Web. After that I also included an other service, the counter service, as seen in this gRPC-Web example.
After everthing was working, I added a Uno Platform WebAssembly app to replace the BlazorApp client.
Problem:
When trying to create a
GrpcChannel
the application gets aSystem.NullReferenceException
.The code snippet for creating the channel looks like this:
This is the same code as used in the BlazorApp sample.
The sample code for the BlazorApp and the Uno Platform WebAssembly can be found in this repository.
Any idea/suggestion/help on how to fix this would be appreciated.
(Question on stackoverflow)
Beta Was this translation helpful? Give feedback.
All reactions