Refit rest api does not seem to work in release build (NullReferenceException) #1498
JelleDamen
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since I've updated my android project to .net6-android I'm not able to execute rest calls with refit in release anymore. It's pretty hard to debug, since it's only happening in the release build of the app. This is the stacktrace from appcenter:
System.Net.Http.HttpClientHandler.SendAsync(HttpRequestMessage , CancellationToken )
System.NullReferenceException: Object reference not set to an instance of an object
I've think it's a linker issue, but I'm out of ideas to solve it. I also checked if HttpClient is the same in debug as in release (It's set to AndroidClientHandler).
Any ideas or suggestions I could try?
Thank you,
Jelle
Beta Was this translation helpful? Give feedback.
All reactions