Closed chokosabe closed 3 months ago
Wondering if anything changed, like maybe a downstream app or library used to read and validate the json file. This behaviour literally started overnight.
Hey,
AFAIK, nothing related to key JSON files was changed recently. It works in my environment as well. Looking at error it complains about JSON structure just at the first line.
Please verify if you have appropriate JSON file there that looks similar to this:
The error looks like it may be not even JSON file.
Failed to initialize FCM client: Oauth(ServiceAccountKeyReadingFailed(Custom { kind: InvalidData, error: "Bad service account key: expected value at line 1 column 1" }))
By the way, I don't recognize this error. FCM/Oauth/ServiceAccountKeyReadingFailed aren't coming neither from firestore or gcloud sdk.
Is it Firebase Cloud Messaging? This crate is not related to anything else except Firestore (database).
Thanks! combing through the code found the issue. It was another library with a very similar connection scheme. The connection method was named the same but works differently. Apologies p firestore-rs was working fine the whole time.
Hi all,
a bit of a weird issue. Have some code I've repeatedly used along with a service account json file I've also used a few times. Porting the code to a new micorservice and getting this error:
Failed to initialize FCM client: Oauth(ServiceAccountKeyReadingFailed(Custom { kind: InvalidData, error: "Bad service account key: expected value at line 1 column 1" }))
Error seems to suggest its an issue reading the json rather than a handshake issue or anything else like that. This is running from inside a docker container. Have tried changing the json file but always getting the same error.
code looks like this:
Flummoxed at this point and reaching out to see if anyone had come across this before.
debug info: