I'm getting the following when trying to make a Call to a firebase Database Exclusively on IOS I dont get the error on android builds.
StatusCode HttpVersionNotSupported
or
ResponseData "<html>\r\n<head><title>505 HTTP Version Not Supported</title></head>\r\n<body>\r\n<center><h1>505 HTTP Version Not Supported</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n"
Heres the Code im running:
return (await firebase
.Child(ChildName)
.OnceAsync<Userlogin>()).Select(item =>
new Userlogin
{
user_login = item.Object.user_login,
passwords = item.Object.passwords
}).ToList();
Here is my Request URL:
public FirebaseClient firebase = new FirebaseClient("https://myappname.firebaseio.com/");
The server is telling me that it does not accept the request because its either coming from Http or the version of http is out of date.
How do I either:
-Update the HTTP
-Force Https
On the IOS side of Xamarin Forms
Stack Trace to help a bit:
StackTrace " at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x0001b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpResponseMessage.cs:168 \n at Firebase.Databa at Firebase.Database.Http.HttpClientExtensions.GetObjectCollectionAsync[T] (System.Net.Http.HttpClient client, System.String requestUri, Newtonsoft.Json.JsonSerializerSettings jsonSerializerSettings) [0x00134] in <d27c522a7ecc437a9802ee0b4650ca23>:0 "
I also want to add that my plist.file also has a https as the url request
Edit:
Issue is moved to: How to deserialize firebase fetch
The issue was Http setting in project, the lingering issue is a deserialisation issue. Will be closing this soon.
>(x);`