Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App not logging in #70

Open
DigitalRogues opened this issue Dec 18, 2024 · 4 comments
Open

App not logging in #70

DigitalRogues opened this issue Dec 18, 2024 · 4 comments

Comments

@DigitalRogues
Copy link

I've logged in several times in a couple different ways but it's always just showing as logged out and acting that way.
I've deleted the user data directory to get a fresh start but no luck.
My login does use MFA and it looks like the login completes using both a straight user/pass login and using a passkey via the Apple login flow.

I'm using the windows install version v0.0.27

here's the logs

INFO:   [ Renderer ] Gui active at 157.69999998807907
INFO:   Window is Hidden
INFO:   [ Renderer ] Gui Finished at 188.89999997615814
INFO:   [ Worker ] [Vault Scanner] Scanning for vault items in C:\ProgramData\Epic\EpicGamesLauncher\VaultCache\
INFO:   Login Window Loaded, Cookies found: 0
DEBUG:  No Asset Manager Studio update needed.
DEBUG:  [Security] Injecting Javascript for  https://newassets.hcaptcha.com/captcha/v1/b4956db/static/hcaptcha.html#frame=challenge&id=0vai6cvmfpxi&host=www.epicgames.com&sentry=true&reportapi=https%3A%2F%2Faccounts.hcaptcha.com&recaptchacompat=true&custom=false&hl=en&tplinks=on&pstissuer=https%3A%2F%2Fpst-issuer.hcaptcha.com&sitekey=91e4137f-95af-4bc9-97af-cdcedce21c8c&theme=dark&size=invisible&challenge-container=h_captcha_challenge_login_prod&orientation=portrait&origin=https%3A%2F%2Fwww.epicgames.com
INFO:   Not Logged in, showing window, starting 10 second timer https://newassets.hcaptcha.com/captcha/v1/b4956db/static/hcaptcha.html#frame=checkbox-invisible
INFO:   Not Logged in, showing window, starting 10 second timer https://newassets.hcaptcha.com/captcha/v1/b4956db/static/hcaptcha.html#frame=checkbox-invisible
INFO:   [ Worker ] Deleting duplicate assets... 
INFO:   [ Worker ] Deleting duplicate assets completed... 
DEBUG:  Not Logged in, showing window https://newassets.hcaptcha.com/captcha/v1/b4956db/static/hcaptcha.html#frame=checkbox-invisible
DEBUG:  [Security] Will Navigate https://www.epicgames.com/id/api/sso?sid=c27de56f68624f55991b3ec4fe299172
INFO:   We've logged in via account/personal redirect
INFO:   We've logged in via account/personal redirect
DEBUG:  Has Sid False EC: False AC: False
ERROR:  Error retrieving Fab assets 404
ERROR:  [Assets] Failed to retrieve asset data from server, you might need to login?
INFO:   [ Assets ] Last Update 1734562754316 seconds ago
ERROR:  getAssets: 401
ERROR:  [ Assets] Failed to retrieve asset data from server, you might need to login?
INFO:   [ Startup ] Done with updateAsset at Gui startup...
INFO:   [ Worker ] [Vault Scanner] Scanning for vault items in D:\Unreal_Main\Unreal Projects\VaultCache\
@NathanaelA
Copy link
Member

INFO: We've logged in via account/personal redirect

Strange that appears to think it logged in. Then you got

ERROR: getAssets: 401
ERROR: [ Assets] Failed to retrieve asset data from server, you might need to login?

Which means it thinks you aren't logged in. I'll add some more logging in this area to see if we can narrow down what is going on...

@sna-scourtney
Copy link

sna-scourtney commented Dec 21, 2024

I may have reproduced this problem and have some additional data. My log includes this:

Not Logged in, showing window https://newassets.hcaptcha.com/captcha/v1/b4956db/static/hcaptcha.html#frame=checkbox-invisible
[Security] Will Navigate https://www.epicgames.com/id/api/sso?sid=074c2**********************59cb312
Response Received https://www.epicgames.com/id/api/redirect?clientId=34a02****************da36f9a&responseType=code
We've logged in via account/personal redirect
Error getting response body [Error: No data found for resource with given identifier]
We've logged in via account/personal redirect
Copy from browser {"errorCode":"errors.com.epicgames.oauth.corrective_action_required","message":"Corrective action is required to continue.","metadata":{"correctiveAction":"EULA_ACCEPTANCE","continuation":"bf06*************a02d"},"correlationId":"c8d1a4f0-*****************8a88b"}
Has Sid False EC: False AC: False
Page completed loading

I have redacted part of the hash strings that might be security-sensitive. I can login to unrealengine.com and fab.com from the UE editor with no problems, so I am not sure why it thinks I haven't accepted the EULA here.

UPDATE: I logged into Epic from a browser and confirmed that the Unreal EULA and the Fab EULA both have recent "accepted" status in my account history. I've also verified that the login problem persists after I resolved the host file access issues in issue #71, so they are not connected.

@sna-scourtney
Copy link

I captured a log of the HTTPS transaction. The Epic server responds with, among other things, a Base64 image, the aforementioned error about EULA acceptance, and a warning to "Enable JavaScript and cookies to continue". The JS/cookie warning is in a tag, so it may not be relevant here.

I've redacted and deleted large sections of hash and Base64 encoded data for privacy and for brevity.

Login Window Loaded, Cookies found: 0 [Security] Will Navigate https://www.epicgames.com/id/api/sso?sid=317****************2fa5abea920bf Response Received https://www.epicgames.com/id/api/redirect?clientId=34a02cf8f4414*************a36f9a&responseType=code We've logged in via account/personal redirect Error getting response body [Error: No data found for resource with given identifier] We've logged in via account/personal redirect Copy from browser {"errorCode":"errors.com.epicgames.oauth.corrective_action_required","message":"Corrective action is required to continue.","metadata":{"correctiveAction":"EULA_ACCEPTANCE","continuation":"bc662b**************3e19424cba45"},"correlationId":"4cc****0-cb75-11ef-a60c-0*********8b"} Has Sid False EC: False AC: False Page completed loading Debugger detached due to: target closed [EpicAPI] getLinuxUnrealVersions: 403 <!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><style>*{box-sizing:border-box;margin:0;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%;color:#313131;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}body{display:flex;flex-direction:column;height:100vh;min-height:100vh}.main-content{margin:8rem auto;max-width:60rem;padding-left:1.5rem}@media (width <= 720px){.main-content{margin-top:4rem}}.h2{font-size:1.5rem;font-weight:500;line-height:2.25rem}@media (width <= 720px){.h2{font-size:1.25rem;line-height:1.5rem}}#challenge-error-text{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0******************xNC44N0wxMzk3Ii8+PC9zdmc+);background-repeat:no-repeat;background-size:contain;padding-left:34px}@media (prefers-color-scheme:dark){body{background-color:#222;color:#d9d9d9}}</style><meta http-equiv="refresh" content="390"></head><body class="no-js"><div class="main-wrapper" role="main"><div class="main-content"><noscript><div class="h2"><span id="challenge-error-text">Enable JavaScript and cookies to continue</span></div></noscript></div></div><script>(function(){window._cf_chl_opt={cvId: '3',cZone: "www.unrealengine.com",cType: 'managed',cRay: '8fd451eee8b7111b',cH: 'e0EXQzjDhrJrKiO1UKZ._PCRJT72gXn0h**********DTk: "\/api\/blobs\/linux?start=0&limit=25&isLoggedIn=true&__cf_chl_tk=JyxYl5PcEvGpM**********************3FUJAnfw-1736089039-1.0.1.1-vuYvg9FH0b*************************xNFYILiA",cFPWv: 'g',cITimeS: '1736089039',cTTimeMs: '1000',cMTimeMs: '390000',cTplC: 0,cTplV: 5,cTplB: 'cf',cK: "",fa: "\/api\/blobs\/linux?start=0&limit=25&isLoggedIn=true&__cf_chl_f_tk=JyxYl5PcEv*********************************-1736md: "51EC.sHR8pbOXg******************************1736089039-1.2.1.1-W4GaE7lIQb2W7bh."};var cpo = document.createElement('script');cpo.src = '/cdn-cgi/challenge-platform/h/g/orchestrate/chl_page/v1?ray=8fd4********111b';window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null, "\/api\/blobs\/linux?start=0&limit=25&isLoggedIn=true&__cf_chl_rt_tk=Jyx**********P8pRHxNFYILiA" + window._cf_chl_opt.cOgUHash);cpo.onload = function() {history.replaceState(null, null, ogU);}}document.getElementsByTagName('head')[0].appendChild(cpo);}());</script></body></html> Error retrieving Fab assets 404 [Assets] Failed to retrieve asset data from server, you might need to login?

@NathanaelA
Copy link
Member

I suspect that I am hiding the window too early for a corner case that you are hitting. I'm going to add a new non-auto-close mode to the next version to see if it helps fix the issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants