web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

www.homedepot.ca - site is not usable

Open herb2k opened this issue 2 years ago • 6 comments

URL: https://www.homedepot.ca/cart

Browser / Version: Firefox 106.0 Operating System: Windows 10 Tested Another Browser: Yes Edge

Problem type: Site is not usable Description: Page not loading correctly Steps to Reproduce: When checking out, home depot's website shows "Unknown Error" inspecting the console shows CORS requests blocked because the URL being requested is "https://.homedepot.ca/" (note the leading period)

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://.homedepot.ca/api/cartsvc/v1/carts/56577297-7402-4827-8e0a-79853564ed59. (Reason: CORS request did not succeed). Status code: (null).

Works fine in Edge Chromium.

Browser Configuration
  • None

From webcompat.com with ❤️

herb2k avatar Oct 05 '22 20:10 herb2k

Thanks for the report, but I'm not able to reproduce the issue. For me the page loads correctly with or without products in the cart. image

Tested with: Browser / Version: Firefox Nightly 107.0a1 (2022-10-05), Firefox Release 105.0.2 Operating System: Windows 10 Pro

@herb2k , could you try clearing cache/data/cookies, disable Ad-blocker (if available), or use a clean profile, and check again? Also if there are any changes made to the default settings of the browser (e.g. in about:config) please revert to the default settings.

[qa_40/2022]

softvision-oana-arbuzov avatar Oct 06 '22 09:10 softvision-oana-arbuzov

Hi There - I did try on a clean installation (deleting the Mozilla folders in the user directories) before and after syncing my bookmarks.

The cart itself works fine, but when you click on "Checkout Now" there is an error... watching on the console you'll see the CORS requests blocked.

herb2k avatar Oct 06 '22 17:10 herb2k

Thanks @herb2k for the heads up. I've checked again, and I managed to see the console error after clicking the "Checkout Now" button. I've also checked on Chrome and a similar error is shown there too. Product URL: https://www.homedepot.ca/product/moen-essie-2-handle-4-inch-centerset-bathroom-sink-faucet-tap-in-chrome-drain-and-valve-included-/1001319533

Firefox: image

Chrome: image

Note: Redirect to "Checkout" page is done both on Firefox and Chrome. image

@denschub could you have a look over the provided console log?

[inv_40/2022]

softvision-oana-arbuzov avatar Oct 07 '22 14:10 softvision-oana-arbuzov

Even with web tracking protection disabled, when I hit Checkout Now, I get the "Unknown Error".

pfak avatar Oct 12 '22 17:10 pfak

Yes, that's the issue I am seeing. Unsure if related but it console errors report CORS request blocked; these actions work fine in Chrome/Edge.

herb2k avatar Oct 12 '22 17:10 herb2k

ping @denschub

[inv_41/2022]

softvision-raul-bucata avatar Oct 14 '22 07:10 softvision-raul-bucata

Ran into this yesterday. I think there is some kind of race condition in JavaScript.

To be specific:

loadAppConfig(t = !0, e, n = !1) {
  // ...
  this.transferState.hasKey(i) ? this.appConfig = this.transferState.get(i, null) : this.http.get(o).toPromise().then(t=>{
    this.appConfig = t
  }) // ...

The promise that sets appConfig above needs to be triggered before:

getOrigin() {
  const t = this.appConfig.config.subDomain;
  return /* ... */  `https://${ t }.homedepot.ca`
}

This call needs to happen after the promise callback, as this.appConfig.config.subDomain will be populated in there with www, otherwise it is empty and the problematic request gets generated.

Chrome seems able to consistently "win" the race, though I did end up hitting the error once while stepping through.

dshin-moz avatar Jan 03 '23 17:01 dshin-moz

@denschub Anything useful from the above findings that might help us?

[inv_02/2023]

softvision-raul-bucata avatar Jan 09 '23 10:01 softvision-raul-bucata

Still an issue in 111.0b1 - is this going to be investigated?

herb2k avatar Feb 15 '23 19:02 herb2k

@pfak Does the issue still reproduces on the latest Nightly version?

[inv_31/2023]

softvision-raul-bucata avatar Aug 02 '23 15:08 softvision-raul-bucata

Unfortunately being unable to reproduce the issue you are experiencing, we cannot help you with it. Please leave a comment with more details, or file a new report and we will gladly investigate this further. This will be closed as Incomplete.

[inv_19/2024]

softvision-raul-bucata avatar May 09 '24 12:05 softvision-raul-bucata