question

Guillermo Eduardo Sanfiz avatar image
Guillermo Eduardo Sanfiz asked

Error: "/Client/ExecuteCloudScript: NotAuthorized"

I am new with Playfab and Azure.

Is the Playfab doc about cloudscript deprecated?

I created an Azure HTTPTrigger, then added in Playfab automation.

But calling it with the API in my Unity game I get --> "/Client/ExecuteCloudScript: NotAuthorized"

How can the logged user get authorization to call the cloudscript?

Thanks!

CloudScript
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

·
Made Wang avatar image
Made Wang answered

Are you using ExecuteCloudScript? This is not the API used to call Azure Function. You need to use ExecuteFunction to call it.

Refer to PlayFab CloudScript using Azure Functions Quickstart Guide - PlayFab | Microsoft Docs.

If there are still errors, please provide some code.

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.