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

Persistence is not working on windows #41

Open
nikirana22 opened this issue Apr 4, 2023 · 1 comment
Open

Persistence is not working on windows #41

nikirana22 opened this issue Apr 4, 2023 · 1 comment

Comments

@nikirana22
Copy link

I'm calling _database.setPersistenceEnabled(true) and also called FirebaseDart.setup(storagePath: 'E:/firebasedart');
but whenever i'm calling ref() but this is not working
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Failed host lookup: 'firebasestorage.googleapis.com'
#0 IOClient.send (package:http/src/io_client.dart:88:7)

#1 Future.timeout. (dart:async/future_impl.dart:871:15)

#2 HttpClient.send (package:firebase_dart/src/storage/impl/http_client.dart:34:9)

#3 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32)

#4 ResourceClient.multipartUpload (package:firebase_dart/src/storage/impl/resource_client.dart:127:20)

#5 UploadTaskImpl._oneShotUpload (package:firebase_dart/src/storage/impl/task.dart:334:23)

#6 UploadTaskImpl._start. (package:firebase_dart/src/storage/impl/task.dart:146:9)

#7 objectSynchronized. (package:synchronized/src/extension_impl.dart:37:18)

#8 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:33:16)

#9 objectSynchronized (package:synchronized/src/extension_impl.dart:34:12)

please correct me if I'm doing something wrong

@rbellens
Copy link
Collaborator

this stack trace has to do with firebase storage, not the database. It seems you are getting this error when uploading a file to storage. So, I don't see how this can be related to setting persistence.

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

2 participants