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

FormatException (FormatException: Invalid UTF-8 byte (at offset 0)) #83

Open
poka-IT opened this issue Mar 10, 2023 · 2 comments
Open

Comments

@poka-IT
Copy link

poka-IT commented Mar 10, 2023

This line work working before upgrading to Flutter 3.7:

await dotenv.load();

But now, this is generating this error:

FormatException (FormatException: Invalid UTF-8 byte (at offset 0))

the content of my .env file:

ip_address=tata


full stack trace:

E/flutter ( 7336): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FormatException: Invalid UTF-8 byte (at offset 0)
E/flutter ( 7336): #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1747:7)
E/flutter ( 7336): #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
E/flutter ( 7336): #2      Utf8Codec.decode (dart:convert/utf.dart:63:20)
E/flutter ( 7336): #3      AssetBundle.loadString
asset_bundle.dart:87
E/flutter ( 7336): <asynchronous suspension>
@kwadwo-ntiamoah
Copy link

Facing this issue too

@kelvinTechbiz
Copy link

is this fixed?

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

3 participants