You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CiGitUser struct in the SDK fails to decode when the avatarUrl field in the API response is an empty string (""). This results in a dataCorrupted decoding error due to the avatarUrl being defined as a URL? type, which cannot handle invalid or empty URL strings.
The avatarUrl property is defined as URL? in the CiGitUser struct. However, empty strings are not valid URL values and cannot be converted to URL during decoding, causing a dataCorrupted error.
Environment
SDK version: 3.6.0
Swift version: 5.10
Xcode 16.2.0
The text was updated successfully, but these errors were encountered:
Hi, I have an question.
Summary
The
CiGitUser
struct in the SDK fails to decode when theavatarUrl
field in the API response is an empty string (""
). This results in adataCorrupted
decoding error due to theavatarUrl
being defined as aURL?
type, which cannot handle invalid or empty URL strings.Steps to Reproduce
make CiBuildRun request
Attempt to decode the response using the CiGitUser struct.
Observe the following decoding error:
API Response
Detail
Root Cause
The avatarUrl property is defined as URL? in the CiGitUser struct. However, empty strings are not valid URL values and cannot be converted to URL during decoding, causing a dataCorrupted error.
Environment
The text was updated successfully, but these errors were encountered: