Skip to content

Deserialization issue compatibilityMode #61

@fredlange

Description

@fredlange

Partial stacktrace when deserializing Node.

kotlinx.serialization.json.internal.JsonDecodingException: Encountered unknown key 'compatibilityMode'. Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys. Current input: .....le.com/","xmlVersion":"","compatibilityMode":"NoQuirksMode"} at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24) at pl.wendigo.chrome.api.dom.Node$$serializer.deserialize(Types.kt) at pl.wendigo.chrome.api.dom.Node$$serializer.deserialize(Types.kt:134) at pl.wendigo.chrome.api.dom.GetDocumentResponse$$serializer.deserialize(Domain.kt) at pl.wendigo.chrome.api.dom.GetDocumentResponse$$serializer.deserialize(Domain.kt:862) at pl.wendigo.chrome.protocol.websocket.FrameMapper.deserializeResponseFrame$chrome_reactive_kotlin(FrameMapper.kt:39) at pl.wendigo.chrome.protocol.websocket.WebSocketFramesStream$getResponse$2.apply(WebSocketFramesStream.kt:66) at pl.wendigo.chrome.protocol.websocket.WebSocketFramesStream$getResponse$2.apply(WebSocketFramesStream.kt:28)

Maybe https://github.com/wendigo/chrome-reactive-kotlin/blob/master/src/main/kotlin/pl/wendigo/chrome/protocol/websocket/FrameMapper.kt#L39 needs to be relaxed as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions