can i local debug cloudscript using Azure functions to call playfab GetTitleData?

peng cui 0 Reputation points
2023-04-26T01:52:53.2033333+00:00

can i local debug cloudscript using Azure functions to GetTitleData?

i use vscode to open an Azure function project , and F5 to start debugging

then i start edge nav to:

[http://localhost:7071/api/CollectUserEvent]

an breakpoint stoped in CollectUserEvent, but when i called :

var api = new PlayFabServerInstanceAPI... var result = api.GetTitleDataAsync..

i got an error:

"The URL for this request is not valid for this title. The correct API endpoint is https://?????.playfabapi.com/"

...

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,471 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,256 Reputation points
    2023-04-26T13:46:40.0433333+00:00

    peng cui Thanks for posting your question in Microsoft Q&A. You can debug Azure Functions in VS code to get PlayFab Title. Here is the doc: Calling your function using HTTP requests from Visual Studio Code which uses REST Client extension and also has sample code snippet to get the title.

    Based on the exception, it looks like API endpoint was incorrect and suggest you validate and follow the steps in the doc. Currently, Azure PlayFab is not supported in Q&A forums. Please ask the experts in the dedicated forum https://community.playfab.com/index.html and the community experts can assist you with your questions. Supported products of Q&A forums are listed in https://docs.microsoft.com/en-us/answers/products/ (more to be added later). I hope this helps.

    0 comments No comments