Skip to content

downloadError how to parse? #94

@KaiserFeng

Description

@KaiserFeng

Hi,

I use SyncStatusData to monitor sync status. When encountering a downloadError that is not empty, a pop-up Alert will appear on the interface to inform the user.But the downloadError message is too long, how to parse this error message?

io.ktor.client.engine.darwin.DarwinHttpRequestException: Exception in http request: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=8, NSUnderlyingError=0x1058f8ff0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, _NSURLErrorNWResolutionReportKey=Resolved 0 endpoints in 1ms using unknown from cache, _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0[802.11], ipv4, dns, uses wifi}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <386301BA-FCF3-43BA-A1A1-1CF9E68F0F2D>.<38>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <386301BA-FCF3-43BA-A1A1-1CF9E68F0F2D>.<38>" ), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://xxx.com/sync/stream, NSErrorFailingURLKey=https://xxx.com/sync/stream, _kCFStreamErrorDomainKey=12}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions