ittybittyapps / appstoreconnect-cli

An easy to use command-line tool for interacting with the Apple AppStore Connect API
MIT License
172 stars 17 forks source link

Bug: error with "processing" status device #260

Open axelburks opened 11 months ago

axelburks commented 11 months ago

🌎 Environment

πŸ’¬ Description

error with "processing" status device

🦢 Reproduction Steps

  1. Add new device to account which have more than 10 devices. https://developer.apple.com/help/account/reference/device-registration-updates/
  2. run asc devices

πŸ€” Expected Results

show devices list

😲 Actual Results

{ "type" : "devices", "id" : "xx", "attributes" : { "addedDate" : "2023-08-08T04:39:17.000+00:00", "name" : "x-ios15.2-iphone12", "deviceClass" : "IPHONE", "model" : "iPhone 12", "udid" : "xxxx", "platform" : "IOS", "status" : "PROCESSING" }, "links" : { "self" : "https://api.appstoreconnect.apple.com/v1/devices/xxx" } } Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "data", intValue: nil), _JSONKey(stringValue: "Index 2", intValue: 2), CodingKeys(stringValue: "attributes", intValue: nil), CodingKeys(stringValue: "status", intValue: nil)], debugDescription: "Cannot initialize DeviceStatus from invalid String value PROCESSING", underlyingError: nil)).

🌳 Logs

Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "data", intValue: nil), _JSONKey(stringValue: "Index 2", intValue: 2), CodingKeys(stringValue: "attributes", intValue: nil), CodingKeys(stringValue: "status", intValue: nil)], debugDescription: "Cannot initialize DeviceStatus from invalid String value PROCESSING", underlyingError: nil)).