Closed matthewpalmer closed 9 years ago
90% confirmed that the issue is caused by invalid cookies. (ColesSearchPageSizeCookie
specifically.)
Confirmed by using a cookie editor on chrome and setting that cookie to 0. Returns a generic error. Possibly due to regular refreshing, but I doubt it. More likely to be the cookie.
Will look into setting cookies in phantom. Initial trial didn't work for some reason.
Ok so I'm trying to set the cookies in phantom, but Coles just overrides whatever I try.
[ { domain: '.coles.com.au',
expires: 'Sun, 29 Jan 2017 10:03:33 GMT',
expiry: 1485684213,
httponly: false,
name: 'WT_FPC',
path: '/',
secure: false,
value: 'id=aa311aa5-3f1c-4944-9807-18109aebbd4e:lv=1422566763200:ss=1422566762516' },
{ domain: 'shop.coles.com.au',
expires: 'Fri, 29 Jan 2016 22:26:02 GMT',
expiry: 1454106362,
httponly: false,
name: 'returningVisitor',
path: '/',
secure: false,
value: '1422570362359' },
{ domain: 'shop.coles.com.au',
expires: 'Fri, 29 Jan 2016 22:26:02 GMT',
expiry: 1454106362,
httponly: false,
name: 'ODRSESSIONID',
path: '/',
secure: false,
value: '%2F%2C:1ecbbec4:1ecbc266' },
{ domain: 'shop.coles.com.au',
expires: 'Fri, 29 Jan 2016 22:26:02 GMT',
expiry: 1454106362,
httponly: false,
name: 'ColesSearchPageSizeCookie',
path: '/',
secure: false,
value: '100' },
{ domain: 'shop.coles.com.au',
expires: 'Fri, 29 Jan 2016 22:26:02 GMT',
expiry: 1454106362,
httponly: false,
name: 'openRhsTrolley',
path: '/',
secure: false,
value: 'closeRhsTrolley' },
{ domain: '.coles.com.au',
expires: 'Thu, 29 Jan 2015 22:35:59 GMT',
expiry: 1422570959,
httponly: false,
name: '_gat',
path: '/',
secure: false,
value: '1' },
{ domain: '.coles.com.au',
expires: 'Sat, 28 Jan 2017 22:25:59 GMT',
expiry: 1485642359,
httponly: false,
name: '_ga',
path: '/',
secure: false,
value: 'GA1.3.1022293264.1422570359' },
{ domain: 'shop.coles.com.au',
expires: 'Fri, 29 Jan 2016 22:25:59 GMT',
expiry: 1454106359,
httponly: false,
name: 'analytics_clv',
path: '/',
secure: false,
value: '0' },
{ domain: '.au',
expires: 'Sun, 26 Jan 2025 22:25:58 GMT',
expiry: 1737930358,
httponly: false,
name: '_fby_site_',
path: '/',
secure: false,
value: '1%7Cau%7C1422570358%7C1422570358%7C1422570358%7C1422570358%7C1%7C1%7C1' },
{ domain: 'shop.coles.com.au',
expires: 'Sun, 26 Jan 2025 22:25:58 GMT',
expiry: 1737930358,
httponly: false,
name: 'WC_GENERIC_ACTIVITYDATA',
path: '/',
secure: false,
value: '[1628104169%3atrue%3afalse%3a0%3aPBEWjIN80Tt2RUlgpyTabBJzXzI%3d][com.ibm.commerce.context.audit.AuditContext|1422570352141%2d186160][com.ibm.commerce.store.facade.server.context.StoreGeoCodeContext|null%26null%26null%26null%26null%26null][CTXSETNAME|Store][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26AUD%26%2d1%26AUD][com.ibm.commerce.catalog.businesscontext.CatalogContext|10576%26null%26false%26false%26false][au.com.coles.framework.session.SessionContext|58d40ec4%2d77cc%2d465a%2da2d2%2d10dbcd2318bc][au.com.coles.commerce.businesscontext.MemberAttributeContext|null][com.ibm.commerce.context.base.BaseContext|10601%26%2d1002%26%2d1002%26%2d1][com.ibm.commerce.context.experiment.ExperimentContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|11502%2611502%26null%26%2d2000%26null%26null%26null][com.ibm.commerce.giftcenter.context.GiftCenterContext|null%26null%26null]' },
{ domain: 'shop.coles.com.au',
expires: 'Sun, 26 Jan 2025 22:25:58 GMT',
expiry: 1737930358,
httponly: false,
name: 'WC_USERACTIVITY_-1002',
path: '/',
secure: false,
value: '%2d1002%2c10601%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cMzpIYpBklF2ypcwTeZ07EepD6WOrHQV2xfCc%2fcPk0Nyi1N37zb1vVc2NQxPQdZd1trhm5oc2Q3T5%0aTibp1rHQsdFPDOnGMDNjIACSVFvseOB4tLRhqGH1eqVc3YghPnYZmhqDZUCLrBfkL5gwOGvOmw%3d%3d' },
{ domain: 'shop.coles.com.au',
expires: 'Sun, 26 Jan 2025 22:25:58 GMT',
expiry: 1737930358,
httponly: false,
name: 'WC_ACTIVEPOINTER',
path: '/',
secure: false,
value: '%2d1%2c10601' },
{ domain: 'shop.coles.com.au',
expires: 'Thu, 05 Mar 2015 22:25:53 GMT',
expiry: 1425594353,
httponly: false,
name: 'WC_PERSISTENT',
path: '/',
secure: false,
value: 'F1WDHe1VO0HiEAejAImTPn%2f375o%3d%0a%3b2015%2d01%2d30+09%3a25%3a52%2e15%5f1422570352141%2d186160%5f10601' },
{ domain: 'shop.coles.com.au',
expires: 'Thu, 05 Mar 2015 22:25:53 GMT',
expiry: 1425594353,
httponly: false,
name: 'WC_SESSION_ESTABLISHED',
path: '/',
secure: false,
value: 'true' },
{ domain: 'shop.coles.com.au',
expires: 'Thu, 05 Mar 2015 22:25:53 GMT',
expiry: 1425594353,
httponly: false,
name: 'JSESSIONID',
path: '/',
secure: false,
value: '0000MQL8IK9eclOi9y__c_-Kgi2:17rpgbrfv' },
{ domain: 'shop.coles.com.au',
expires: 'Thu, 05 Mar 2015 22:25:53 GMT',
expiry: 1425594353,
httponly: false,
name: 'cache-generation',
path: '/',
secure: false,
value: '20150129T142409' },
{ domain: '.shop.coles.com.au',
expires: 'Thu, 05 Mar 2015 22:25:53 GMT',
expiry: 1425594353,
httponly: false,
name: 'ColesSearchPageSizeCookie',
path: '/',
secure: false,
value: '100' } ]
There are two entries for ColesSearchPageSizeCookie
, but the one I set gets forced to the domain .shop.coles.com.au
while their one gets to be shop.coles.com.au
.
Side-by-side Chrome, Incognito Chrome, and Safari windows. Plus Phantom code. Safari works fine. Incognito Chrome works fine. Normal Chrome returns generic errors like 50+% of the time; same with the phantom code