Hi all,
We are using google apps script with a google sheet as a simple web app (API) to log specific events.
The Playfab Webhook keeps calling the endpoint over and over again for the same events.
We are not sure if the issue is with Playfab webhook, the apps script code or both.
We will appreciate any suggestion.
Notes:
- Playfab Title ID: 6B9D2
- In apps script we are using a doPost(e) and at the end we are returning the following:
return HtmlService.createHtmlOutput("");
- In Postman: the script returns HTML content, and the status is 200 OK
Could you please describe that when you call the google apps script endpoint in Postman, how many times was your app script code executed?
When I call it, it gets executed once (as expected).
Answer by Rick Chen · Feb 18, 2021 at 03:27 AM
We use "at least once" delivery semantics for the Webhook. This means, for any given message we will retry until we get positive confirmation from the receiver. This can create duplicates when the receiver fails to respond for some reason despite actually receiving the message. In these cases, the culprit is either the stability of the receiver or general internet randomness.
I see. It may be an issue with the google apps script not returning the required positive confirmation as the Webhook's expectation.
I will look for a solution in the google apps script side, and will update you if I find anything.
Thank you for understanding. I am looking forward to the update.
Is there any way to dump past event data to my S3 bucket? 1 Answer
Data explorer average values 1 Answer
How can i StoreData in the titleData with json Object? 1 Answer
How to find PlayFab Player ID in Photon events 1 Answer
What Apis i have to use to structure a collection or entities for my Database? 1 Answer