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 /
  • API and SDK Questions /
avatar image
Question by davitmkrtchyan96 · Sep 09, 2019 at 01:29 AM · apisunity3ddatalimits

Playfab randomly throws ServiceUnavailable / Timeout errors.

Hi there. I'm currently working on Server Build and experiencing weird behavior.

ServiceUnavailable, Timeout, 400 BadRequest Exceptions are gitting thrown from time to time even though I have a stable internet connection and accepted certificates.

My question is, does playfab have hidden limitations? For example, Server Build may add Virtual currency to 6 players at the same time is that an issue?

What else may cause these exceptions?

Here is the console log. https://pastebin.com/FwPvrXgi

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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Citrus Yan · Sep 09, 2019 at 08:41 AM

Hi,

You are saying PlayFab randomly throws ServiceUnavailable / Timeout errors, do you mean that in most cases you servers work fine? I have seen the logs you posted, it seems that the issue may relate to AddUserVirtualCurrency API request you mentioned. General speaking, a 400 error will always contain an error, errorMessage, and errorDetails that will help to solve the question of why the error occurred. It would be helpful if you can gather these logs for us to investigate.

Here is the sample:

{ 
	"code": 400, 
	"status": "BadRequest", 
	"error": "InvalidParams", 
	"errorCode": 1000, 
	"errorMessage": "Invalid input parameters", 
	"errorDetails": 
			{ 
			"CustomId": [ 
				"The CustomId field is required." 
				    ]  
			}
}

PlayFab do have a limit on server APIs that are limited to 1000 calls per 10 seconds, although I don’t think it will cause this issue if you are only making 6 API calls at the same time.

About what else may cause these exceptions, I found this thread which says that server API calls are not allowed due to certificate issues in Unity, you might want to check it out.

Comment

People who like this

0 Show 10 · 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 davitmkrtchyan96 · Sep 09, 2019 at 11:03 AM 0
Share

Hi, thanks for the reply. The thing is that the error does not have any Error Details at all.
The log that I've linked is using overriden ToString() method that appends Error Details at the end if there are any.

avatar image Citrus Yan davitmkrtchyan96 · Sep 10, 2019 at 07:26 AM 0
Share

Have you checked the thread about certificate issues in Unity I posted? And, could you please provide your title id for us to investigate? Thanks.

avatar image davitmkrtchyan96 Citrus Yan · Sep 10, 2019 at 07:37 AM 0
Share

Hi, its F8C7.
Also, I have increased timeout settings from 2000 ms to 4000 ms and the problem seems to be fixed. Anyway, I'm not sure cause the exception was occurring infrequently.

Show more comments

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

    How to send List to cloud script? Not a Map,How to send a list of objects using ExcuteCloudScript? (not a dictionary) 1 Answer

    Update part of a JSON 1 Answer

    Having trouble with getting invalid input parameters error when calling UpdateUserData. 1 Answer

    Need more storage for inventory item data value 1 Answer

    How do data value update limits work? 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