You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v3.5 seems to incorrectly generate request urls. This has been brought up in the SFCC slack server, and this issue is being made for visibility's sake and to track the progress.
The network request correctly generates the path http://localhost:3000/shopper/auth/v1/organizations/f_ecom_xxxx_xxx/oauth2/token
Actual result
The network request will return a 404 with the path http://localhost:3000/mobify/scapi/shopper/auth/shopper/auth/v1/organizations/f_ecom_xxxx_xxxx/oauth2/token. Note the duplicate shopper/auth/
Summary
v3.5 seems to incorrectly generate request urls. This has been brought up in the SFCC slack server, and this issue is being made for visibility's sake and to track the progress.
Steps To Reproduce
Expected result
The network request correctly generates the path
http://localhost:3000/shopper/auth/v1/organizations/f_ecom_xxxx_xxx/oauth2/token
Actual result
The network request will return a 404 with the path
http://localhost:3000/mobify/scapi/shopper/auth/shopper/auth/v1/organizations/f_ecom_xxxx_xxxx/oauth2/token
. Note the duplicateshopper/auth/
System Information (as applicable)
Browser: Arc
Node version: v20.11.1
pwa-kit version: v3.5
Desktop OS: MacOS
Mobile Device Info: N.A.
Additional information
I did some logging myself from the
@salesforce/*
packages:pwa-kit/packages/commerce-sdk-react/src/auth/index.ts
Line 179 in 245e7a8
And the proxyRequest path as such:
https://github.com/SalesforceCommerceCloud/pwa-kit/blob/245e7a8bf6ef11ced9969e4a884f265d8c8de148/packages/pwa-kit-runtime/src/ssr/server/build-remote-server.js
So my guess is that these are being concatenated. I did not dive deeper than this, but I hope it might point people in the right direction.
The text was updated successfully, but these errors were encountered: