-
Notifications
You must be signed in to change notification settings - Fork 87
GCP Dshop Instance Authentication Flow Seems To Break After Minor Code Changes #931
Comments
Nice writeup @sifdogg, thanks 🙏 I'm not sure how soon we'll be able to take a look at this but we'll try to do so. |
Thanks for writing this up. I'll try to find time in the next couple of days to see if I can reproduce this issue. |
@sifdogg Can you check the devtools console when you see a white screen (F12 in Chrome)? If you see something like this:
You may need to update your
Looks like the way we currently use SVG is we add the SVG XML directly in component files. If that doesn't help, can you provide the code for you component |
Update: I also get the same issue on
|
That error doesn't really make sense to me. |
Went through the repro steps. Setup a node on AWS. Did first login/reg, and configured the node. Used the code you provide for
Imported it in
Built it:
Restart the service
And was able to login again. If you get further information, update the issue. |
Everything's working perfectly now. From my understanding, the issue arose because I had switched node versions as I was under the impression that Dshop works with node v14 from the local development documentation. Thank you guys. |
CONTEXT
After making a small change to the
front end
code and building the app successfully, GCP Dshop instance hangs on login page and doesn't proceed to super-admin dashboard. Login with correct credentials simply refreshes the page and doesn't direct me to the super-admin dashboard. Wrong login credentials produce anUnauthorized
error as expected. I can't seem to regain access to the super-admin dashboard.PROCESS
svg
logo below the OriginDshop logo by adding the svg code toshop/src/components/icons/MyLogo.js
and importing the icon inshop/src/components/pages/super-admin/setup/_SetupLayout.js
<div className="logo"> <DshopLogoWhite /> <MyLogo /> </div>
cd shop
andyarn run build:dist
which compiles successfully.EXPECTED RESULT
Return to Dshop
login
page, enter credentials and beredirected to super-admin dashboard
CURRENT RESULT
Entering correct credentials does
not redirect to super-admin dashboard
, just a page refresh and login prompt again. Entering wrong credentials givesUnauthorized
error as expected.ATTEMPTED FIXES
rm -rf node_modules
inroot, shop, backend and packages/services
thenyarn
in root,yarn run build:dist
and both compile successfullyReturn to Dshop and issue still not resolved, still can't gain access to super-admin dashboard.
Terminate and Delete instance.
Deploy fresh GCP Dshop instance, configure super-admin but this time don't log out of dashboard + change default password + keep browser window open.
Repeat steps 2 & 3
Ctrl + F5
browser window and this time try tologout
of the super-admin dashboard. Issue persists.FINDINGS
Unrelated changes to code (e.g
add svg logo to login page
) seem to affect theAuthentication
process.In the first Instance, I couldn't login after logging out and making changes.
In the second Instance, I couldn't logout after logging in, keeping browser open, making changes and
Ctrl + F5
.Any ideas on how to resolve?
The text was updated successfully, but these errors were encountered: