Hi guys,
Setup:
Windows 7
Visual Studio 2015
OS X Yosemite
Xamarin (latest stable version)
I've been trying to solve this issue. I cannot seem to get any solid information on it. But OK in short I've been trying to make this app for (iOS and android) that I go to this (https) URL and fetch the information and display the information (synchronously). Very straightforward and very easy.
Before I went and put too much effort and work into it I decided to make a console application on my windows 7 machine. I wrote a class there and EVERYTHING was working with no issues.
So I started to make the app and I got to a point where I was going use my class I wrote earlier. I was expecting things to go smooth but no! I was hoping for a clear error but no! It just tells me that the request has timeout. It times out at the following line:
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
This is what I'm seeing when I get the exception:
{System.Net.WebException: The request timed out
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00046] in /Users/builder/data/lanes/2077/1d27ac2c/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/System.Net/HttpWebRequest.cs:940
at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /Users/builder/data/lanes/2077/1d27ac2c/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/System.Net/HttpWebRequest.cs:958
I did try other URLs just to be sure. It seems to be working fine with HTTP URLs but it has some problems with some HTTPS URLs.
I'm not sure if I'm doing something wrong or the mono/xamarin implementation of HttpWebRequest is not done properly because I was expecting no problems at this point.
I tried asynchronously and I'm still waiting for the callback...
I tried to put a trace on webrequest to see if I could gather more info on what is going wrong but I'm not sure how to do that with xamarin.forms.
Any help or information on the matter is very welcome at this moment.