Closed dragodj82 closed 6 years ago
How is your UtilWs class calling the WordPressClient? Are you hosting WordPress on Azure / IIS?
These are the two methods I use to call wordpress bees:
public static async Task
return _clientAuth;
}
public static WordPressClient GetWordPressClient()
{
if (_client == null)
_client = new WordPressClient(ApiCredentials.WordPressUri);
return _client;
}
my wordpress is on a v-hosting with plesk
that look ok. I suspect your server is returning non-valid json. Can you check the server response in fiddler or wireshark to see what the response body looks like?
I receive this error:
if I execute the command with postman it will work correctly. Only when I use the library in my xamarin project gives me this problem.
Hello, I solved, the problem was in the firewall of plesk that did not block requests.
Hello, when I try to initialize the library with jwt authentication I always have the same error that is what I report below, someone knows how to help me.
here is the code I use:
}
1[TClass].MoveNext () [0x0020b] in <56caf333cfda4373a1cf079cf59f3492>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.Runtime.CompilerServices.TaskAwaiter
1[TResult].GetResult () [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at WordPressPCL.WordPressClient+