I have a problem with API which is working on Microsoft-IIS/8.5 when I'm trying call it from Android app with Retrofit2 I'm getting error 500 when I'm calling it from Postman everything is ok.
I have compare url which is generated by Retrofit with that one which I'm providing in Postman and they are equals.
Does anyone had similar issue?
On server side there is an info in error log:
Object reference not set to an instance of an object.
- at X.MvcApplication.Application_AcquireRequestState(Object sender, EventArgs e)
- at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
- at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Since I'm Android.Java guy maybe someone know what that means or maybe there is a problem on my side?
If it's duplicated IMO should return same results for Android and Postman request but it's returning two different, moreover looks that there is something missing in my code but really I have no idea. All request are going now with header:
"Cache-Control: no-cache",
"Content-Type: application/json"