Skip to content

LateInitializationError: Field '_file@1163133173' has not been initialized. #66

@muhammadyusuf-kurbonov

Description

@muhammadyusuf-kurbonov

Describe the bug

E/flutter (12153): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: LateInitializationError: Field '_file@1163133173' has not been initialized.
E/flutter (12153): #0      JSONBridge._file (package:json_bridge/src/json_bridge.dart)
E/flutter (12153): #1      JSONBridge.read (package:json_bridge/src/json_bridge.dart:63:9)
E/flutter (12153): #2      JSONBridge.get (package:json_bridge/src/json_bridge.dart:207:33)
E/flutter (12153): #3      JsonStorage.getAccessToken (package:flutter_feathersjs/src/config/storage.dart:85:25)
E/flutter (12153): #4      RestClient.reAuthenticate (package:flutter_feathersjs/src/rest_client.dart:73:38)
E/flutter (12153): #5      FlutterFeathersjs.reAuthenticate (package:flutter_feathersjs/src/featherjs.dart:137:45)

To Reproduce
Steps to reproduce the behavior:

  1. on Android device
  2. reAthenticate just after init after instance created
feathers.init(baseUrl: baseUrl);
feathers.client = ""; // Another bug. Without this autheticate won't work.

await reAuthenticate();
  1. See error

Expected behavior
Authentication success or fail

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: Android Emulator
  • OS: API 35

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions