Back

SyntaxError: Unexpected end of JSON input

  • 0
  • Functions
  • Web
thre4dripper
7 Dec, 2024, 11:48

I am trying to create a fcm push notification service using appwrite functions with its REST API to invoke that function from my client side app and getting this error on function invokation logs.I have put several logs statements in code but nothing happening except this error

I have used the fcm template provided from appwrite and made some changes in it. My code repo: https://github.com/Thre4dripper/FCM-Notification-Service

I have tested the flow with test.js script available in this repo, and its working fine when invoked locally, the forth env variable is not required so i have removed it. The flow is well tested and working locally, but not in appwrite.

Attaching the postman request with body, kindly help me out, i am blocked

TL;DR
Developers are encountering a SyntaxError when trying to create a fcm push notification service using appwrite functions with its REST API. The code works locally but not in appwrite. They are sharing their code repository for reference and seeking help with the issue.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more