Closed hiltonc closed 9 months ago
Same as #240, when doing a create build run request the CiBuildRunResponse contains a CiGitUser object. The response path data.attributes.sourceCommit.author.avaterUrl can contain an empty string which fails to decode.
CiBuildRunResponse
CiGitUser
data.attributes.sourceCommit.author.avaterUrl
Error: Failed to decode response: { "data" : { "type" : "ciBuildRuns", "id" : "9461d71a-0fb3-43ed-9b7a-e154fed69742", "attributes" : { "number" : 415, "createdDate" : "2023-12-15T20:55:48.521Z", "startedDate" : null, "finishedDate" : null, "sourceCommit" : { "commitSha" : "", "message" : "", "author" : { "displayName" : "", "avatarUrl" : "" }, "committer" : { "displayName" : "", "avatarUrl" : "" }, "webUrl" : "" }, "destinationCommit" : null, "isPullRequestBuild" : false, "issueCounts" : null, "executionProgress" : "PENDING", "completionStatus" : null, "startReason" : "MANUAL", "cancelReason" : null }, "relationships" : { "builds" : { "links" : { "self" : "https://api.appstoreconnect.apple.com/v1/ciBuildRuns/9461d71a-0fb3-43ed-9b7a-e154fed69742/relationships/builds", "related" : "https://api.appstoreconnect.apple.com/v1/ciBuildRuns/9461d71a-0fb3-43ed-9b7a-e154fed69742/builds" } }, "actions" : { "links" : { "self" : "https://api.appstoreconnect.apple.com/v1/ciBuildRuns/9461d71a-0fb3-43ed-9b7a-e154fed69742/relationships/actions", "related" : "https://api.appstoreconnect.apple.com/v1/ciBuildRuns/9461d71a-0fb3-43ed-9b7a-e154fed69742/actions" } } }, "links" : { "self" : "https://api.appstoreconnect.apple.com/v1/ciBuildRuns/9461d71a-0fb3-43ed-9b7a-e154fed69742" } }, "links" : { "self" : "https://api.appstoreconnect.apple.com/v1/ciBuildRuns" } } Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [StringCodingKey(stringValue: "data", intValue: nil), StringCodingKey(stringValue: "attributes", intValue: nil), StringCodingKey(stringValue: "sourceCommit", intValue: nil), StringCodingKey(stringValue: "author", intValue: nil), StringCodingKey(stringValue: "avatarUrl", intValue: nil)], debugDescription: "Invalid URL string.", underlyingError: nil)).
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
Same as #240, when doing a create build run request the
CiBuildRunResponse
contains aCiGitUser
object. The response pathdata.attributes.sourceCommit.author.avaterUrl
can contain an empty string which fails to decode.