Closed Inspekt2 closed 3 years ago
Hi @Inspekt2 ! Are you modifying the API endpoint? If you go into Edit -> Project Settings -> Mixpanel
what do you see under API Host Address
? Could you also enable Show Debug
under that screen and paste here the output that you see? Thank you!
Issue occurs when WorkerThread(_bgThread) is enabled. If it is disabled, it's fine. So I think that problem happens in this part of the code:
var content = new StringContent("data=" + payload, Encoding.UTF8, "application/json"); var responseRequest = _client.PostAsync(url, content).Result; responseCode = (int) responseRequest.StatusCode; response = responseRequest.Content.ReadAsStringAsync().Result;
We had an experiment: we created an empty project and we were trying to reproduce this issue, but it was working without any error. So it seems like it needs some special conditions for reproducing.
Our environment: Unity
2019.2.17f1
MixpanelV2.2.0
Scripting Backend:IL2CPP
APi compatiblity:.NET 4.x