Skip to content

failed to decode envelope: unexpected end of JSON input #141

Closed
@GeertJohan

Description

@GeertJohan

Errors like these may occur in the standard output:

go-flutter: failed to pop route after escape key press: failed to decode envelope: unexpected end of JSON input

This is the case because InvokeMethod always expects a response which it wants to decode, but we don't always get a response. Currently responses are not implemented (flutter/flutter#18852), and even when they are, some methods don't return a response.

Java has InvokeMethod vs InvokeMethod with callback. Perhaps we should also provide two methods, one which doesn't expect a response and therefore doesn't try to decode it (resulting in decode error)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions