question

Jack Smith-Hocking avatar image
Jack Smith-Hocking asked

PlayFabCloudScriptInstanceAPI doesn't support local Azure debugging

Looks like there's a disparity between PlayFabCloudScriptInstanceAPI and PlayFabCloudScriptAPI in UnitySDK-2.183.231124

PlayFabCloudScriptInstanceAPI.ExecuteFunction does not support local debugging for Azure functions using PlayFabSettings.LocalApiServer.

I can confirm that copying and pasting the code from PlayFabCloudScriptAPI.ExecuteFunction into PlayFabCloudScriptInstanceAPI.ExecuteFunction, and passing 'this' into PlayFabHttp.MakeApiCallWithFullUri, works fine.

unity3dCloudScript
4 comments
10 |1200

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

Infer Wang avatar image Infer Wang commented ·

Could you please tell me if you receive any error message when try to local debug PlayFabCloudScriptInstanceAPI.ExecuteFunction? Did this cause any impact?

0 Likes 0 ·
Jack Smith-Hocking avatar image Jack Smith-Hocking Infer Wang commented ·

No errors, it just tries to use the live version of the Azure function. The code that fetches the PlayFabSettings.LocalApiServer is missing entirely from PlayFabCloudScriptInstanceAPI.ExecuteFunction.

0 Likes 0 ·
Infer Wang avatar image Infer Wang Jack Smith-Hocking commented ·

Can you use the static API instead of the instance API? Is there any concern on using the static API to test Azure function locally?

0 Likes 0 ·
Show more comments

1 Answer

·
Infer Wang avatar image
Infer Wang answered

You can use the instance API in your system as you want. But currently the local test Azure Function is design for static APIs, you can do the modification to the SDK to make instance API work with local Azure Function test environment. Thank you for sharing that.

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.