Skip to content

fix(core): report QH HTTP errors before plist parsing - #324

Open
gitssie wants to merge 1 commit into
claration:mainfrom
gitssie:fix/qh-http-error-reporting
Open

gitssie wants to merge 1 commit into
claration:mainfrom
gitssie:fix/qh-http-error-reporting

Conversation

@gitssie

@gitssie gitssie commented Nov 25, 2026

Copy link
Copy Markdown

When a QH developer-services request receives a plain-text HTTP error, the client currently attempts to deserialize it as a plist dictionary. For example, addDevice.action returning HTTP 400 with HTTP 400 Bad Request produces the misleading error invalid type: string "HTTP", expected a map.

Check the HTTP status before plist deserialization and return the existing GeneralHttpError, preserving the endpoint URL and status. Successful responses continue through the existing plist and developer API result-code handling. This improves error reporting; it does not change device-registration requests or retry failed registrations.

Validation:

  • cargo test -p plume_core --features tweaks developer::session::tests — 2 passed, covering a plain-text HTTP 400 and valid/invalid successful plist responses.
  • cargo build -p plumesign — passed.
  • The project CLI subsequently completed signing and installation on the connected iPhone.

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

Successfully merging this pull request may close these issues.

1 participant