You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Installation failed with NSCocoaErrorDomain 3840 (Encountered unknown tag html on line 1) #1698
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
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>
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.
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.
Reacted by SeanZ, Troy Liu, CapiTea, 0x_Memory_Leak, clementkeyms, silentlit, Aayan Shaikh and Ray Eldath
Reacted by Ava 🏳️⚧️
Reacted by Vincent He, 0x_Memory_Leak, N, Aayan Shaikh, Ray Eldath and xCrootZ
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.
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.
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.
Activity
DANIEL48055 commentedon Jan 9, 2026
+1 same
mawen233 commentedon Jan 9, 2026
+1 same
yshtcn commentedon Jan 11, 2026
+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.
yifleo commentedon Jan 12, 2026
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.
artixzhang commentedon Jan 12, 2026
That works for me, thank you.
clementkeyms commentedon Feb 4, 2026
Worked like a charm! Thank you so much!
AayanShaikh007 commentedon May 28, 2026
still working. Thanks so much :)