Skip to content

[Bug] Installation failed with NSCocoaErrorDomain 3840 (Encountered unknown tag html on line 1) #1698

Closed

Description

@artixzhang

Environments

  • OS: macOS Sequoia 15.5
  • OS(Device): iPadOS 18.6.2; iOS 18.6.2
  • AltServer Version: 1.7.2 (90)
  • Network: Tested with/without proxy and mobile hotspot.

Description

When attempting to install AltStore to my iPhone or iPad, the process fails during the installing stage. The detailed error message shows NSCocoaErrorDomain 3840 with the debug description Encountered unknown tag html on line 1.

Troubleshooting Done

  • Apple ID: Confirmed account is active and credentials are correct.
  • Connectivity Test: I ran curl -v https://gsa.apple.com/grandslam/GsService2. The connection was successful, but the server returned a 401 Unauthorized HTML page, which seems to be what AltServer is incorrectly trying to parse as data.
    Logs: (See the curl output below)

Screenshots

Image

Detailed Logs

* Host gsa.apple.com:443 was resolved.
* Connected to gsa.apple.com (17.32.194.2) port 443
* SSL certificate verify ok.
> GET /grandslam/GsService2 HTTP/1.1
> Host: gsa.apple.com
> User-Agent: curl/8.7.1

< HTTP/1.1 401 Unauthorized
< Content-Type: text/html
<html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>Apple</center>
</body>
</html>

Activity

  1. DANIEL48055 commented on Jan 9, 2026

    @DANIEL48055

    +1 same

  2. mawen233 commented on Jan 9, 2026

    @mawen233

    +1 same

  3. yshtcn commented on Jan 11, 2026

    @yshtcn

    +1 same

    I encountered this problem on my MacBook m2 computer.
    To add to that, I tried installing it on another Windows computer, and it worked (and a two-step verification code request popped up, which never happened on a Mac).

    Then I tried installing the app on iOS, and the same problem occurred. I suspect some data was being cached for verification, but Apple apparently rejected it.
    But I don't want to solve this problem by completely resetting my iOS and Mac.

    I hope you can help us.

  4. yifleo commented on Jan 12, 2026

    @yifleo

    If you are not in the United States, try enabling a global VPN on both your computer and your iPhone.
    It is likely that some Apple endpoints are not accessible in certain regions, which causes AltServer to fail.

  5. artixzhang commented on Jan 12, 2026

    @artixzhang
    Author

    If you are not in the United States, try enabling a global VPN on both your computer and your iPhone. It is likely that some Apple endpoints are not accessible in certain regions, which causes AltServer to fail.

    That works for me, thank you.

  6. clementkeyms commented on Feb 4, 2026

    @clementkeyms

    If you are not in the United States, try enabling a global VPN on both your computer and your iPhone. It is likely that some Apple endpoints are not accessible in certain regions, which causes AltServer to fail.

    Worked like a charm! Thank you so much!

  7. AayanShaikh007 commented on May 28, 2026

    @AayanShaikh007

    If you are not in the United States, try enabling a global VPN on both your computer and your iPhone. It is likely that some Apple endpoints are not accessible in certain regions, which causes AltServer to fail.

    still working. Thanks so much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions