Hello,
I've downloaded the current version of firebase component (3.0.2 ) I've set up the site properties of FirebaseDemo module with the proper values.
When I'm accessing to ChatRoomWithToken screen, an exception occurs;
Object reference not set to an instance of an object.
In the FbServiceAccountPrivateKey site property, I've used this value, without that
-----BEGIN PRIVATE KEY-----\n and \n-----END PRIVATE KEY-----\n
Has anyone encountered the same error?
Thanks in advance.
Hi
I was able to make it work. Private Key should not have \n the end as it is on the config file obtained in firebase
Hi Antonio, I'm with the same error, i'm using the entire Private Key, i don't know if it's right but there are some '\n' in the middle of string.
I've already removed '\n' from entire string, also removed the "special characters" like '+', '=', '\'. And it doesn't work. Can you help me?
Thanks in advance
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCjownX3aQSi8Li\nQDBrBX533RKG6kgEmJUFfegGZzg9RkSdi2ppXcuFjFT3B/+rwDn457tNaCcAmKnv\nJ4PWOR/9L/P53HkiptPaRB1Wpxy7Y1CrtcSoFiFX01VsxM//3qSqugGQg/G+OGZy\nmjUhcsXiHpsa5Pe50nqgtbtj8yCg1AlaVxF4+FOcUr/U0+QXrlzAu+oDbVJUgBSy\nwrOSEK+9wPLfSPob8eIrFy0LUoyshBUD0dsL7WTTBV46lPK+SFhuxPSD8aTJOeRe\n85EoefxIO7QtLv/AT2BTqooSKhjcD1So53BLz7WceF6UpaUEN6kXAaPfdDsaf0N8\nYk1z2bZXA [...] Tw9pQKBgQCrsUyJAhrydSUznp1XKN2a\n15AnFmxJuC0eZX6ig6tEM6hSVo/dq5jyhVjgQI6Dela6AzZ3329DyKBfJuQ+sPmJ\ntthorV+PTzgMsE4FfTLoU6ETHw48RReSOgYLu9AUmbKJLNiri9YbiLHdBlZ4dabe\nTyVJwvkylSbeyNtN0XTREw==\n-----END PRIVATE KEY-----\n",
Hey Henrique,
Try to remove that last \n as shown bellow with the red arrow.
And i think that's all you will need. You don't need to remove special chars or the \n from the private key itself.