FirestackApp icon indicating copy to clipboard operation
FirestackApp copied to clipboard

Exception 'Failed to get default FIRDatabase instance.....'

Open banerjed opened this issue 8 years ago • 2 comments

Got this exception on the simulator window while launching - not sure why:

Exception 'Failed to get default FIRDatabase instance. Must call FIRApp.configure() before using FIRDatabase.' was thrown while invoking on target FirestackDatabase with params (

"/chat-messages/database-demo", ("orderByChild:createdAt", "limitToLast:10", "endAt:temp-id-484903"), "child_added", 17 )

banerjed avatar Jan 29 '17 01:01 banerjed

Here is a bit of the exception trace

Jan 28 21:12:12 Dhritimans-iMac FirestackApp[23029] <Notice>: { title: 'Chat example', key: 'database.Chat example' } Jan 28 21:12:12 Dhritimans-iMac FirestackApp[23029] <Notice>: { title: 'Ordering example', key: 'database.Ordering example' } Jan 28 21:12:12 Dhritimans-iMac FirestackApp[23029] <Notice>: '%cfirestack:database |', 'color: hsl(84.98447189992442,99%,40%); font-weight: bold', '[debug]', 'Created new Database instance', { debug: '*' } Jan 28 21:12:12 Dhritimans-iMac FirestackApp[23029] <Notice>: '%cfirestack:dbRef |', 'color: hsl(307.4767078498866,99%,40%); font-weight: bold', '[debug]', 'Created new DatabaseRef', '/chat-messages/database-demo' Jan 28 21:12:12 Dhritimans-iMac FirestackApp[23029] <Critical>: Exception 'Failed to get default FIRDatabase instance. Must call FIRApp.configure() before using FIRDatabase.' was thrown while invoking on on target FirestackDatabase with params ( "/chat-messages/database-demo", ( "orderByChild:createdAt", "limitToLast:10", "endAt:temp-id-484903" ), "child_added", 11 ) Jan 28 21:12:12 Dhritimans-iMac FirestackApp[23029] <Error>: [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure] to your application initialization. Read more: https://goo.gl/ctyzm8. Jan 28 21:12:12 Dhritimans-iMac FirestackApp[23029] <Notice>: { title: 'Chat example', key: 'database.Chat example' } Jan 28 21:12:13 Dhritimans-iMac FirestackApp[23029] <Notice>: { title: 'Ordering example', key: 'database.Ordering example' } Jan 28 21:12:14 Dhritimans-iMac FirestackApp[23029] <Error>: [] __nw_connection_get_connected_socket_block_invoke 5 Connection has no connected handler Jan 28 21:12:16 Dhritimans-iMac CoreSimulatorBridge[22477] <Warning>: Pasteboard change listener callback port <NSMachPort: 0x7fd8ab602740> registered

banerjed avatar Jan 29 '17 02:01 banerjed

I have the same issue. Any help?

sachaschwab avatar Aug 19 '17 10:08 sachaschwab