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

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

Closed
GeertJohan opened this issue May 18, 2019 · 1 comment · Fixed by #219
Closed

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

GeertJohan opened this issue May 18, 2019 · 1 comment · Fixed by #219

Comments

@GeertJohan
Copy link
Member

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)

@pchampio
Copy link
Member

pchampio commented Sep 3, 2019

fix taged in tag: v0.29.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants