-
Notifications
You must be signed in to change notification settings - Fork 135
Problem: SendQueryAsync no response #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you turn on / check logs on the server side? |
This is where it gets wacky, server gets a post request returns a 200 code, nothing weird or irregular happening there |
###Additional Information using GermanFishing.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace GermanFishing.ViewModel.Authentication
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Authentification
{
public Authentification()
{
}
public bool Auth()
{
if (IsLoggedIn() && KeyActive())
{
return true;
}
else
{
return false;
}
}
private bool IsLoggedIn()
{
bool is_logged_in = Application.Current.Properties.ContainsKey("IsLoggedIn") ? Convert.ToBoolean(Application.Current.Properties["IsLoggedIn"]) : false;
return is_logged_in;
}
private bool KeyActive()
{
UserViewModel user_view_model = new UserViewModel();
Task task = user_view_model.GetProfileData();
task.Wait();
if (user_view_model.user_profile == null)
{
return false;
}
return true;
}
}
} |
Same thing here, after calling SendQueryAsync synchronously with ".Result" on Task nothing happens, no logs no errors. |
I can PR fix of this. |
@masouri assumes one of your var response = Task.Run(async () => await client.SendQueryAsync<UserImage>(request)).Result; It will call |
Uh oh!
There was an error while loading. Please reload this page.
Problem
As the title suggestest i send a graphql request, i do this in 3 different situations but in one of those
the method SendQueryAsync just stops without any errors(tried try catch and breakpoints).
####Details
I have one Class to do this request, i use it mutliple times, but in one case it doesn't work and i have no idea
why, or how to debbug it.
There is nothing noticable in the Stacktrace aswell as far as im concerned
###This is my Code
Any suggestions how to approach this ?
The text was updated successfully, but these errors were encountered: