question

Nathan James avatar image
Nathan James asked

GetProfile using local azure cloud functions

I'm having issues calling cloud functions from Unity3d using local azure functions. It seems that it always fails to call `GetProfile`.

[2021-07-31T18:41:54.867Z] Executed 'ExecuteFunction' (Failed, Id=55994346-dd3a-48f3-962b-8d31756afbc4, Duration=10994ms)
[2021-07-31T18:41:54.868Z] System.Private.CoreLib: Exception while executing function: ExecuteFunction. System.Net.Http: The requested name is valid, but no data of the requested type was found. System.Private.CoreLib: The requested name is valid, but no data of the requested type was found.




I'm following these docs:
- https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript-af/local-debugging-for-cloudscript-using-azure-functions
- https://github.com/PlayFab/pf-af-devfuncs/blob/main/csharp/ExecuteFunction.cs

sdksCloudScript
wwkky.png (175.0 KiB)
1 comment
10 |1200

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

Rick Chen avatar image Rick Chen ♦ commented ·

I will do some tests on that and will give you update. Your patience is appreciated.

0 Likes 0 ·

1 Answer

·
Rick Chen avatar image
Rick Chen answered

I noticed that the getProfileUrl in your screenshot (line 150) is https://playfabapi.com/Profile/GetProfile instead of https://xxxxx.playfabapi.com/Profile/GetProfile where xxxxx should be your title id. According to my test, that mis-configured url “https://playfabapi.com/Profile/GetProfile” can cause the error you mentioned.

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.