Use a separate connection for each GrandSlam request (marketplace) - #49
Conversation
9199500 to
a91fb9e
Compare
Adapt upstream AltSign PRs rileytestut#47 and rileytestut#49 while preserving structured errors and redacted diagnostics. Restrict retries to GSA 5xx, five attempts and a 60-second exchange budget; invalidate every session. Verified by 17 local hosted XCTest cases and Apple builds in AltForge. User confirmed macOS login proceeds to device preparation; complete installation and cross-platform account coverage remain pending.
|
Tried this patch but I'm getting Any ideas? |
I'm not totally sure. Could be a couple things including your system time being off. Without knowing anymore info about your system and how you tried the patch I am going to be unable to help. Would honestly recommend trying Claude code or Codex with your error and the patch. |
|
Supporting evidence for the diagnosis here, from altstoreio/AltStore#1699. Before finding this PR, I had instrumented stock AltServer 1.7.2 and added automatic retries on the 503, expecting a transient backend blip. All 6 attempts over ~7 seconds returned 503, and I wrongly concluded Apple was refusing the operation outright. The reason is exactly what this PR describes: my retries reused the same I have since run with a fresh ephemeral session per request (plus AltSign#47) on macOS 27.0 beta (26A5416b), and sign-in completes: |
|
@rileytestut Same flag as on #47 — this one's also I ran the fresh-ephemeral-session change in isolation against stock AltServer 1.7.2 and it matches the diagnosis in this PR's description exactly — the retry-on-same-connection failure mode is real and reproducible. Multiple people (myself, @Scope666, @spaceace90) have now confirmed #47+#49 together resolve sign-in end to end. Would appreciate a review when you get a chance. |
Apple's edge serves at most two requests per connection and 503s everything after that. Signing in takes three requests over one pooled session, so apptokens always fails and the HTML 503 gets parsed as a plist, which is where the 3840 comes from. Same fix as rileytestut#52, which landed on notarized. This branch still has the bug.
a91fb9e to
f499856
Compare
Same fix as #52, for
marketplace. That branch still has the bug.Apple's edge serves at most two requests per connection and 503s everything after that. Signing in takes three requests over one pooled session, so
apptokensalways fails:The HTML 503 then goes to the plist parser, which is where
NSCocoaErrorDomain 3840comes from.Approach and wording lifted from @sshane's #52 so the two branches stay consistent.
Reported in altstoreio/AltStore#1776, #1699, #1747.