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

[windows-build] v2.0.0-rc.2 auth login issue #122

Closed
P5-2005 opened this issue Dec 6, 2022 · 6 comments
Closed

[windows-build] v2.0.0-rc.2 auth login issue #122

P5-2005 opened this issue Dec 6, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@P5-2005
Copy link

P5-2005 commented Dec 6, 2022

What happened?

ipatool-2.0.0-rc.2-windows-amd64 auth login --email redacted-email --verbose
after puting the password and 2fa code, got this :

ERR error="failed to log in: Did you forget your password?" success=false

tried with different apple id(dev one) same issue

Version

v2.0.0-rc.2

Relevant log output

ipatool-2.0.0-rc.2-windows-amd64 auth login --email redacted-email --verbose
1:57PM INF enter password:
1:57PM DBG guid=XXAEDXX36XX9 mac=XX:XX:XX:XX:XX:XX
1:57PM DBG sending login request attempt=0 authCode=<nil> email=redacted-email password=redacted-password
1:57PM INF enter 2FA code:
2XXXXX
1:58PM DBG sending login request attempt=0 authCode=2XXXXX email=redacted-email password=redacted-password
1:58PM DBG response={"Data":{"Account":{"Address":{"FirstName":"","LastName":""},"Email":""},"CustomerMessage":"Did you forget your password?","DirectoryServicesID":"","FailureType":"5020","PasswordToken":""},"Headers":{"Apple-Originating-System":"MZFinance","Apple-Seq":"0","Apple-Timing-App":"106 ms","Apple-Tk":"false","B3":"045032268b64261e7f05df524b5fb421-fbe1fac8f02fe5cf","Cache-Control":"private; no-cache; no-store; no-transform; must-revalidate; max-age=0","Content-Type":"text/xml; charset=UTF-8","Date":"Tue, 06 Dec 2022 09:58:17 GMT","Edge-Control":"no-store; cache-maxage=0","Expires":"Tue, 06 Dec 2022 09:58:17 GMT","Itspod":"25","Pod":"25","Set-Cookie":"itspod=25; version=\"1\"; expires=Fri, 06-Jan-2023 09:58:17 GMT; path=/; domain=.apple.com; mzf_in=3250087; version=\"1\"; path=/WebObjects; domain=.apple.com; secure; HttpOnly; mzf_dr=0; version=\"1\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; path=/WebObjects; domain=.apple.com; ns-mzf-inst=241-23-443-117-18-9015-3250087-25-mr23; version=1; Max-Age=1800; path=/WebObjects/; domain=.apple.com; httponly","Strict-Transport-Security":"max-age=31536000","X-Apple-Application-Instance":"3250087","X-Apple-Application-Site":"MR22","X-Apple-Date-Generated":"Tue, 06 Dec 2022 09:58:17 GMT","X-Apple-Jingle-Correlation-Key":"ARIDEJULMQTB47YF35JEWX5UEE","X-Apple-Lokamai-No-Cache":"true","X-Apple-Orig-Url":"https://p71-buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/authenticate?guid=XXAEDXX36XX9","X-Apple-Request-Store-Front":"\u003cnull\u003e","X-Apple-Request-Uuid":"04503226-8b64-261e-7f05-df524b5fb421","X-Apple-Translated-Wo-Url":"/WebObjects/MZFinance.woa/wa/authenticate?guid=XXAEDXX36XX9","X-B3-Spanid":"fbe1fac8f02fe5cf","X-B3-Traceid":"045032268b64261e7f05df524b5fb421","X-Frame-Options":"SAMEORIGIN","X-Responding-Instance":"MZFinance:3250087:::","X-Webobjects-Loadaverage":"112"},"StatusCode":200}
1:58PM DBG error="failed to log in: Did you forget your password?" stack=[{"func":"(*appstore).Login","line":"57","source":"appstore_login.go"},{"func":"loginCmd.func1","line":"42","source":"auth.go"},{"func":"(*Command).execute","line":"916","source":"command.go"},{"func":"(*Command).ExecuteC","line":"1044","source":"command.go"},{"func":"(*Command).Execute","line":"968","source":"command.go"},{"func":"Execute","line":"54","source":"root.go"},{"func":"main","line":"9","source":"main.go"},{"func":"main","line":"250","source":"proc.go"},{"func":"goexit","line":"1594","source":"asm_amd64.s"}]
1:58PM ERR error="failed to log in: Did you forget your password?" success=false

edit :
tried same build on macos bigsur, login worked fine, so the issue seem only on windows static build

@P5-2005 P5-2005 added the bug Something isn't working label Dec 6, 2022
@P5-2005 P5-2005 changed the title v2.0.0-rc.2 auth issue v2.0.0-rc.2 auth login issue Dec 6, 2022
@P5-2005 P5-2005 changed the title v2.0.0-rc.2 auth login issue [windows-build] v2.0.0-rc.2 auth login issue Dec 6, 2022
@majd
Copy link
Owner

majd commented Dec 6, 2022

Can you please check if the authCode and password that you redacted in the logs contain any new lines or empty space characters at the end of the string?

@P5-2005
Copy link
Author

P5-2005 commented Dec 7, 2022

my bad, nvm it was from my end sorry, now auth login all fine on windows xD
but got such this when try to download :

C:\Users\Admin\Documents>ipatool-2.0.0-rc.2-windows-amd64 download --bundle-identifier com.google.chrome.ios --purchase
9:42AM INF enter passphrase to unlock "C:\\Users\\Admin\\.ipatool" (this is separate from your Apple ID password):
downloading   23% |██████████████████████████████████                                                                                                                      | (26/107 MB, 918 kB/s) 9:42AM ERR error="failed to download file: failed to download file: failed to write file: context deadline exceeded (Client.Timeout or context cancellation while reading body)" success=false

C:\Users\Admin\Documents>ipatool-2.0.0-rc.2-windows-amd64 download --bundle-identifier com.google.chrome.ios --purchase --verbose
9:43AM INF enter passphrase to unlock "C:\\Users\\Admin\\.ipatool" (this is separate from your Apple ID password):
9:43AM DBG guid=XXXXXXXXXX mac=XX:XX:XX:XX:XX:XX
9:43AM DBG downloading size=107.38MB
downloading    3% |████                                                                                                                                                   | (3.5/107 MB, 442 kB/s) 9:43AM DBG error="failed to download file: failed to download file: failed to write file: context deadline exceeded (Client.Timeout or context cancellation while reading body)" stack=[{"func":"(*appstore).Download","line":"76","source":"appstore_download.go"},{"func":"downloadCmd.func1","line":"24","source":"download.go"},{"func":"(*Command).execute","line":"916","source":"command.go"},{"func":"(*Command).ExecuteC","line":"1044","source":"command.go"},{"func":"(*Command).Execute","line":"968","source":"command.go"},{"func":"Execute","line":"54","source":"root.go"},{"func":"main","line":"9","source":"main.go"},{"func":"main","line":"250","source":"proc.go"},{"func":"goexit","line":"1594","source":"asm_amd64.s"}]
9:43AM ERR error="failed to download file: failed to download file: failed to write file: context deadline exceeded (Client.Timeout or context cancellation while reading body)" success=false

any option to increase timeout or something?

@majd
Copy link
Owner

majd commented Dec 7, 2022

The issue should be fixed in the latest build. Could you test and confirm? https://github.com/majd/ipatool/releases/tag/v2.0.0-rc.3

@majd majd added the auto-close Automatically close issue after 7 days of inactivity label Dec 7, 2022
@P5-2005
Copy link
Author

P5-2005 commented Dec 8, 2022

yes, fixed thank you

@P5-2005 P5-2005 closed this as completed Dec 8, 2022
@github-actions github-actions bot removed the auto-close Automatically close issue after 7 days of inactivity label Dec 8, 2022
@e-ave
Copy link

e-ave commented Sep 16, 2023

my bad, nvm it was from my end sorry, now auth login all fine on windows xD but got such this when try to download :

C:\Users\Admin\Documents>ipatool-2.0.0-rc.2-windows-amd64 download --bundle-identifier com.google.chrome.ios --purchase
9:42AM INF enter passphrase to unlock "C:\\Users\\Admin\\.ipatool" (this is separate from your Apple ID password):
downloading   23% |██████████████████████████████████                                                                                                                      | (26/107 MB, 918 kB/s) 9:42AM ERR error="failed to download file: failed to download file: failed to write file: context deadline exceeded (Client.Timeout or context cancellation while reading body)" success=false

C:\Users\Admin\Documents>ipatool-2.0.0-rc.2-windows-amd64 download --bundle-identifier com.google.chrome.ios --purchase --verbose
9:43AM INF enter passphrase to unlock "C:\\Users\\Admin\\.ipatool" (this is separate from your Apple ID password):
9:43AM DBG guid=XXXXXXXXXX mac=XX:XX:XX:XX:XX:XX
9:43AM DBG downloading size=107.38MB
downloading    3% |████                                                                                                                                                   | (3.5/107 MB, 442 kB/s) 9:43AM DBG error="failed to download file: failed to download file: failed to write file: context deadline exceeded (Client.Timeout or context cancellation while reading body)" stack=[{"func":"(*appstore).Download","line":"76","source":"appstore_download.go"},{"func":"downloadCmd.func1","line":"24","source":"download.go"},{"func":"(*Command).execute","line":"916","source":"command.go"},{"func":"(*Command).ExecuteC","line":"1044","source":"command.go"},{"func":"(*Command).Execute","line":"968","source":"command.go"},{"func":"Execute","line":"54","source":"root.go"},{"func":"main","line":"9","source":"main.go"},{"func":"main","line":"250","source":"proc.go"},{"func":"goexit","line":"1594","source":"asm_amd64.s"}]
9:43AM ERR error="failed to download file: failed to download file: failed to write file: context deadline exceeded (Client.Timeout or context cancellation while reading body)" success=false

any option to increase timeout or something?

So how did you fix it then? I still get "Did you forget your password?"

@P5-2005
Copy link
Author

P5-2005 commented Sep 19, 2023

my bad, nvm it was from my end sorry, now auth login all fine on windows xD but got such this when try to download :

C:\Users\Admin\Documents>ipatool-2.0.0-rc.2-windows-amd64 download --bundle-identifier com.google.chrome.ios --purchase
9:42AM INF enter passphrase to unlock "C:\\Users\\Admin\\.ipatool" (this is separate from your Apple ID password):
downloading   23% |██████████████████████████████████                                                                                                                      | (26/107 MB, 918 kB/s) 9:42AM ERR error="failed to download file: failed to download file: failed to write file: context deadline exceeded (Client.Timeout or context cancellation while reading body)" success=false

C:\Users\Admin\Documents>ipatool-2.0.0-rc.2-windows-amd64 download --bundle-identifier com.google.chrome.ios --purchase --verbose
9:43AM INF enter passphrase to unlock "C:\\Users\\Admin\\.ipatool" (this is separate from your Apple ID password):
9:43AM DBG guid=XXXXXXXXXX mac=XX:XX:XX:XX:XX:XX
9:43AM DBG downloading size=107.38MB
downloading    3% |████                                                                                                                                                   | (3.5/107 MB, 442 kB/s) 9:43AM DBG error="failed to download file: failed to download file: failed to write file: context deadline exceeded (Client.Timeout or context cancellation while reading body)" stack=[{"func":"(*appstore).Download","line":"76","source":"appstore_download.go"},{"func":"downloadCmd.func1","line":"24","source":"download.go"},{"func":"(*Command).execute","line":"916","source":"command.go"},{"func":"(*Command).ExecuteC","line":"1044","source":"command.go"},{"func":"(*Command).Execute","line":"968","source":"command.go"},{"func":"Execute","line":"54","source":"root.go"},{"func":"main","line":"9","source":"main.go"},{"func":"main","line":"250","source":"proc.go"},{"func":"goexit","line":"1594","source":"asm_amd64.s"}]
9:43AM ERR error="failed to download file: failed to download file: failed to write file: context deadline exceeded (Client.Timeout or context cancellation while reading body)" success=false

any option to increase timeout or something?

So how did you fix it then? I still get "Did you forget your password?"

last commit fixed my issue, idk if you have timeout issue or something else? try enable debug mode and see more detail

C:\Users\PC\Downloads>ipatool-2.0.2-windows-amd64.exe download --bundle-identifier com.google.chrome.ios --purchase --verbose
6:55PM INF enter passphrase to unlock "C:\\Users\\PC\\.ipatool" (this is separate from your Apple ID password):
6:55PM DBG guid=00XXXXXXXX mac=00:XX:XX:7c:XX:XX
6:56PM DBG attempting to acquire license
6:56PM DBG downloading size=118.10MB
6:56PM DBG writing sinf data path=Payload/stable.app/SC_Info/Chrome.sinf
6:56PM INF output="C:\\Users\\PC\\Downloads/com.google.chrome.ios_535886823_v117.0.5938.108_561.ipa" success=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants