question

rmontino avatar image
rmontino asked

Uploading build using New-PfAsset fails 20% of the time...

...however when I drag-n-drop in Game Manager it works almost 100&. I read in another post they use the same POST method under the hood. Pwsh output...

F:\Server\AoLUnity>"C:\Program Files\PowerShell\7\pwsh" -File "upload_to_playfab.ps1"


D:\PlayfabContent\PlayfabContent-160.zip
PlayfabContent-160.zip
New-PfAsset: F:\Server\AoLUnity\upload_to_playfab.ps1:9
Line |
   9 |  New-PfAsset -FilePath "D:\PlayfabContent\PlayfabContent-$str.zip" -As …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "GetResult" with "0" argument(s): "An error occurred while sending the request."




F:\Server\AoLUnity>PAUSE
Press any key to continue . . .
windows
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

Since this command first calls Get Asset Upload Url and then uses the Azure REST API to upload given file, so this issue may be related to PlayFab Status - Increased API Error Response Rate, and it has been resolved. Currently, I cannot reproduce this issue, does this issue persist in your environment?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.