|
Rank: Advanced Member Groups: Member
Joined: 9/20/2016 Posts: 73
|
Can't save cookies from the site - an exception is thrown. Tried on clean browser. Steps to reproduce the problem: 1. Go to site http://clixtoyou.com2. Click "Login" Then wait page to load (cloudflare protection) 3. Try to save cookie via WebView.Engine.CookieManager.GetCookies("", false); I've got an exception: "GetCookies failed." at EO.Internal.imfs.wjtj(imgc dt, String du, Boolean dv) at EO.Internal.imfs.hnli(String dw, Boolean dx) at EO.WebEngine.CookieManager.GetCookies(String url, Boolean includeHttpOnly)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Please move GetCookies to a different call or delay the call. GetCookies can not be called under certain scenario as it would cause deadlock. One typical scenario is if you have a shortcut and then call GetCookies in the shortcut handler, then you will receive this error. A simple workaround for this issue is to use BeginInvoke to delay the call to the next message cycle.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 9/20/2016 Posts: 73
|
I tried with BeginInvoke, but the exception still occurs intermittently. The first call goes fine, but the second one crashes, even if I make it after a while.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Is it possible for you to create a test app and send the test app to us? We can debug it here to find out exactly why it fails in your case.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 9/20/2016 Posts: 73
|
I redefined the standard handler of the "Reload" button in the Tabbed Browser:
Code: C#
private void btnReload_Click(object sender, RoutedEventArgs e)
{
/*
if ((m_CurPage != null) &&
!string.IsNullOrEmpty(m_CurPage.WebView.Url))
{
m_CurPage.WebView.Reload(true);
}
*/
m_CurPage.WebView.LoadUrlAndWait("https://www.clixtoyou.com/index.php?view=login");
try
{
Dispatcher.BeginInvoke((EO.Base.Action)(() =>
{
m_CurPage.WebView.Engine.CookieManager.GetCookies("", false);
}), System.Windows.Threading.DispatcherPriority.Normal);
}
catch (Exception ee)
{
throw new Exception(ee.Message+ee.StackTrace);
}
}
Press this button twice (click the button, wait for the page to load, and click the button again) and you will get an exception.
|
|
Rank: Member Groups: Member
Joined: 9/16/2015 Posts: 18
|
Is this resolved in EO 21.2.99?
EO 21.2.47 - ok EO 21.2.70 - fail EO.21.2.99 - ?
|
|
Rank: Advanced Member Groups: Member
Joined: 9/20/2016 Posts: 73
|
No, the problem still exists in EO.21.2.99
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
We did fix this issue internally but it was not fully verified in time for build 21.2.99. If you prefer we can provide an internal build to you with the fix. The official build with this fix is scheduled in the week after thanksgiving.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This is just to let you know that we have posted a new build that should fix this issue. You can download the new build from our download page. Please take a look and let us know how it goes.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 9/20/2016 Posts: 73
|
Thank you, it works fine now.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great. Thanks for confirming the fix!
|
|