AltStore icon indicating copy to clipboard operation
AltStore copied to clipboard

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

Open artixzhang opened this issue 10 months ago • 7 comments

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>

artixzhang avatar Jan 08 '26 18:01 artixzhang

+1 same

DANIEL48055 avatar Jan 09 '26 01:01 DANIEL48055

+1 same

mawen233 avatar Jan 09 '26 08:01 mawen233

+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.

yshtcn avatar Jan 11 '26 08:01 yshtcn

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.

yifleo avatar Jan 12 '26 07:01 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.

That works for me, thank you.

artixzhang avatar Jan 12 '26 08:01 artixzhang

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!

clementkeyms avatar Feb 04 '26 14:02 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.

still working. Thanks so much :)

AayanShaikh007 avatar May 28 '26 08:05 AayanShaikh007