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 /
  • Feature Requests /
avatar image

Kelly Bennett suggested an idea · Mar 18 at 03:00 AM · CloudScript

Support HTTP Status Codes

I have created an API layer with Azure Functions which responds with various status codes, but those status codes are not visible to the client when wrapped by ExecuteFunction.

For example: Say I have an Azure Function which returns an HTTP Status Code 429 when it's hit too frequently.

From PostMan I can verify that the endpoint does indeed return a 429 when I spam it like crazy

However, when I register that Azure Function with PlayFab and use PostMan to hit the Azure Function through ExecuteFunction, I never see a 429. Instead I see the same response that I see for all non-200 responses

{ "code": 400, "status": "BadRequest", "error": "CloudScriptAzureFunctionsHTTPRequestError", "errorCode": 1473, "errorMessage": "Invocation of cloud script function <Function Name> failed" }

My Client can not use this response to know to slow down polling my API, for example.

It would be very useful for ExecuteFunction to pass along the underlying HTTP status code so that clients can use those codes (or log them).

thub.nodes.view.add-new-comment

People who like this

0 Show 0
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

No comments

· Add your reply

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Your Opinion Counts

    We would love to know what you need. Submit your ideas and upvote others to help us prioritize.

    Sign in to post a new idea

    Follow

    Follow This Idea

    1 Person is following this .

    avatar image

    Related Ideas

    GitLab integration for CloudScript Content Management

    Update the Server API to allow UpdateUserTitleDisplayName

    CloudScript - Include commit header beside the version #

    Change User display name via Server API / Cloud Script

    Improve GrantItemsToUsers to support item grants from multiple catalogs in a single call

    Matchmaking rule type: CloudScript (Azure Function) for custom MM logic

    Edit CloudScript in Unity

    Internal code editor for cloud scripting

    cloudscript tasks on player segments should tally OKs and Fails

    Add PurchaseItem to the Server API

    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