Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLProtocol.setProperty(_,forKey:in:) usage creates an error #606

Open
terminatorover opened this issue Jul 27, 2021 · 0 comments
Open

URLProtocol.setProperty(_,forKey:in:) usage creates an error #606

terminatorover opened this issue Jul 27, 2021 · 0 comments

Comments

@terminatorover
Copy link

The following is the error logged to the console.

 writeDBwithCachedResponse - Invalid protocol-property list - CFURLRequestRef. protoProps={
    PINRemoteImageWeakTaskKey = "<PINRemoteImageWeakTask: 0x2825b4700>";
}

Previously this method URLProtocol.setProperty(_,forKey:in:), was being passed a string for the value but now it's a PINRemoteImageWeakTask and this works but emits the error above. Perhaps, it's best to move to the previous implementation or have the PINRemoteImageWeakTask conform to the protocol that would allow it be serializable.

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

No branches or pull requests

1 participant