N
Novu•2mo ago
ganpatjangra

Expected property name or '}' in JSON at position 4

There was one or more errors when trying to execute the notification I use in Front-end "@novu/nextjs": "^3.8.1", Backe-end "@novu/api": "^1.6.0",
No description
No description
7 Replies
ganpatjangra
ganpatjangraOP•2mo ago
@Community Support Any one can pleas provide me little bit help regarding this issue.
Pawan Jain
Pawan Jain•2mo ago
@ganpatjangra Could you please send us an email to support@novu.co Please send the email using the novu account email address
BamGoingHam
BamGoingHam•2mo ago
Hello @Pawan Jain I am experiencing this same issue 🙂
Pawan Jain
Pawan Jain•2mo ago
@BamGoingHam @ganpatjangra I see this error occurs due to incorrect format Service Account JSON value in FCM integration credentials Correct format is as per this doc https://docs.novu.co/platform/integrations/push/fcm#generating-a-service-account-key-json
{
"type": "service_account",
"project_id": "PROJECT_ID",
"private_key_id": "PRIVATE_KEY_ID",
"private_key": "PRIVATE_KEY",
"client_email": "FIREBASE_ADMIN_SDK_EMAIL",
"client_id": "CLIENT_ID",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "CLIENT_X509_CERT_URL"
}
{
"type": "service_account",
"project_id": "PROJECT_ID",
"private_key_id": "PRIVATE_KEY_ID",
"private_key": "PRIVATE_KEY",
"client_email": "FIREBASE_ADMIN_SDK_EMAIL",
"client_id": "CLIENT_ID",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "CLIENT_X509_CERT_URL"
}
BamGoingHam
BamGoingHam•2mo ago
Amazing thank you
ganpatjangra
ganpatjangraOP•2mo ago
@Pawan Jain Thank you so much.
Pawan Jain
Pawan Jain•5w ago
A small update: we added the validation on the service JSON text area field, so it will throw an error with a description if the format is incorrect.

Did you find this page helpful?