Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • PlayStream /
avatar image
Question by tarek · Feb 12, 2021 at 03:53 AM · datawebhooks

Webhook sends data multiple times to a google apps script web app endpoint

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

Comment

People who like this

0 Show 2
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rick Chen ♦ · Feb 12, 2021 at 09:45 AM 0
Share

Could you please describe that when you call the google apps script endpoint in Postman, how many times was your app script code executed?

avatar image tarek Rick Chen ♦ · Feb 15, 2021 at 02:26 PM 0
Share

When I call it, it gets executed once (as expected).

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

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.

Comment
tarek

People who like this

1 Show 4 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tarek · Feb 18, 2021 at 11:12 AM 0
Share

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.

avatar image Rick Chen ♦ tarek · Feb 19, 2021 at 06:14 AM 0
Share

Thank you for understanding. I am looking forward to the update.

avatar image Burak Sen tarek · Apr 18, 2021 at 02:56 PM 0
Share

Have you got any updates @tarek?

avatar image tarek Burak Sen · Apr 21, 2021 at 08:26 AM 0
Share

No, I am still not able to figure it out.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    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

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges