Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication failing with 421 status code #15

Open
h-azycrazy opened this issue Jan 15, 2025 · 0 comments
Open

Authentication failing with 421 status code #15

h-azycrazy opened this issue Jan 15, 2025 · 0 comments

Comments

@h-azycrazy
Copy link

h-azycrazy commented Jan 15, 2025

When trying to authenticate with taking client-id reference from pyicloud, and passing in correct credentials, getting 421 error code from authentication.

This is happening while running the TestDriveService test.

Actual response from the test case:

Failed to log into iCloud: 1.0 java.lang.RuntimeException: Failed to log into iCloud: 1.0 at com.github.tmyroadctfig.icloud4j.ICloudService.authenticate(ICloudService.java:212) at com.github.tmyroadctfig.icloud4j.ICloudService.authenticate(ICloudService.java:186) at com.github.tmyroadctfig.icloud4j.ICloudTestUtils.getServiceFromSystemProperties(ICloudTestUtils.java:41) at com.github.tmyroadctfig.icloud4j.TestDriveService.testListItems(TestDriveService.java:45)

Here's the response object - in debug mode:

HttpResponseProxy { HTTP/1.1 421 Misdirected Request [ Server: AppleHttpServer/d2dcc6a0a5e3, Date: Wed, 15 Jan 2025 03:13:24 GMT, Content-Type: application/json; charset=UTF-8, Content-Length: 27, Connection: keep-alive, X-Responding-Instance: setupservice:35600103:mr90p56ic-zteg05151101:8003:2429B1067:aee437a0d9a6, Cache-Control: no-cache, no-store, private, Access-Control-Allow-Origin: https://www.icloud.com, Access-Control-Allow-Credentials: true, Strict-Transport-Security: max-age=31536000; includeSubDomains;, x-apple-user-partition: 56, via: xrail:mr47p00ic-qujn02081502.me.com:8301:24R623:grp21,631194250daa17e24277dea86cf30319:a5de70b782c4585caed42917ef71df0e:inbom2, X-Apple-Request-UUID: 90a86233-1ac0-4237-9ae6-13f20765c559, access-control-expose-headers: X-Apple-Request-UUID,Via, X-Apple-Edge-Response-Time: 231 ] ResponseEntityProxy{ [ Content-Type: application/json; charset=UTF-8, Content-Length: 27, Chunked: false ] } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant