Skip to content

Recent HTTP 421, Misdirected Request during login preventing execution #29

@txara

Description

@txara

This has been working great for months -- completing 2FA code entry is not needed just to find your device, to play a sound on a device

Now, about 2 weeks ago, seems to be only issuing redirect requests.
Request is successfully reaching Apple but reply including a redirect
trace shows numerous(?) page requests, until HTTP 421 is returned
I'm curious if others are seeing this issue at the moment?

Not sure if it's just me or if others are seeing this too, it's possible multi domain SSL Certs from Apple are not as expected. I also see this issue over time being reported from others (other projects) using https://setup.icloud.com/setup/ws/1/login

maybe there's some cache that needs to be cleared? or better handling of session cookies being returned by Apple?

return "Login Error" with HTTP code 421

            var options = {
		url: "https://setup.icloud.com/setup/ws/1/login",
		json: {
			"apple_id": findmyphone.apple_id,
			"password": findmyphone.password,
			"extended_login": true
		}
	};

	findmyphone.iRequest.post(options, function(error, response, body) {
		if (!response || response.statusCode != 200) {
			return callback("Login Error");
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions