autopkg / nmcspadden-recipes

My own collection of recipes for Autopkg
Apache License 2.0
61 stars 27 forks source link

Timeout in AppleCookieDownloader.py #73

Open BitsDream opened 1 year ago

BitsDream commented 1 year ago

I can't get the download recipe running because i'm constantly running into a timeout. This is the error I get:

AppleCookieDownloader
{'Input': {'login_data': '/Users/<user>/Library/AutoPkg/Cache/local.download.Xcode/downloads/login_data'}}
AppleCookieDownloader: Getting login cookie
AppleCookieDownloader: Getting download cookie
Traceback (most recent call last):
  File "/Users/<user>/Library/AutoPkg/RecipeRepos/com.github.autopkg.nmcspadden-recipes/Xcode/AppleCookieDownloader.py", line 119, in main
    if "your session has expired" in login_attempt['resultString'].lower():
KeyError: 'resultString'
nmcspadden commented 1 year ago

This method may be broken if all Apple IDs require 2fa. If the Apple ID you are using requires it, then it's likely timing out waiting for that 2fa confirmation to happen. There's nothing I can do to prevent that :(

On Tue, Nov 7, 2023 at 11:54 PM BitsDream @.***> wrote:

I can't get the download recipe running because i'm constantly running into a timeout. This is the error I get:

AppleCookieDownloader {'Input': {'login_data': '/Users//Library/AutoPkg/Cache/local.download.Xcode/downloads/login_data'}} AppleCookieDownloader: Getting login cookie AppleCookieDownloader: Getting download cookie Traceback (most recent call last): File "/Users//Library/AutoPkg/RecipeRepos/com.github.autopkg.nmcspadden-recipes/Xcode/AppleCookieDownloader.py", line 119, in main if "your session has expired" in login_attempt['resultString'].lower(): KeyError: 'resultString'

— Reply to this email directly, view it on GitHub https://github.com/autopkg/nmcspadden-recipes/issues/73, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJFTX6CJ3AB4EYMY5YH46DYDM3B7AVCNFSM6AAAAAA7CNSV4SVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DEOJWGUZDCNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

Nick McSpadden @.***

BitsDream commented 1 year ago

The developer Apple ID I use for download doesn't have 2FA enabled - just username and password.