Welcome Guest Search | Active Topics | Sign In | Register

GetCookies Exception (WebBrowser 21.2.70.0 x64) Options
rainstuff
Posted: Monday, October 25, 2021 9:08:37 AM
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.com
2. 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)

eo_support
Posted: Monday, October 25, 2021 5:32:40 PM
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!
rainstuff
Posted: Tuesday, October 26, 2021 2:45:54 AM
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.
eo_support
Posted: Thursday, October 28, 2021 1:21:14 PM
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!
rainstuff
Posted: Friday, October 29, 2021 6:38:04 AM
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.
CLEARSOFT
Posted: Monday, November 15, 2021 12:43:53 AM
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 - ?
rainstuff
Posted: Monday, November 15, 2021 6:25:25 AM
Rank: Advanced Member
Groups: Member

Joined: 9/20/2016
Posts: 73
No, the problem still exists in EO.21.2.99
eo_support
Posted: Monday, November 15, 2021 10:49:19 AM
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!
eo_support
Posted: Wednesday, December 1, 2021 1:57:27 PM
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!
rainstuff
Posted: Friday, December 3, 2021 5:03:30 AM
Rank: Advanced Member
Groups: Member

Joined: 9/20/2016
Posts: 73
Thank you, it works fine now.
eo_support
Posted: Friday, December 3, 2021 8:49:57 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Great. Thanks for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.