[Bug] Installation failed with `NSCocoaErrorDomain 3840` (Encountered unknown tag html on line 1)
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 thecurloutput 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>
+1 same
+1 same
+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.
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.
That works for me, thank you.
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!
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 :)