question

764882213 avatar image
764882213 asked

Error on photon&playfab: The hostname could not be parsed,Error on pun: The hostname could not be parsed

using photon &playfab ,I'm getting the error:

UriFormatException: Invalid URI: The hostname could not be parsed. (.playfabapi.com) System.Uri.Parse (UriKind kind, System.String uriString) System.Uri.ParseUri (UriKind kind) System.Uri..ctor (System.String uriString, Boolean dontEscape) System.Uri..ctor (System.String uriString) UnityEngineInternal.WebRequestUtils.MakeInitialUrl (System.String targetUrl, System.String localUrl) (at C:/buildslave/unity/build/Modules/UnityWebRequest/Public/WebRequestUtils.cs:531)

hope somesone can help me

apis
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

·
brendan avatar image
brendan answered

The Title ID is missing from your project. Check that you have it set in the PlayFab settings in your build. The URL for your game will be { {TitleID}}.playfabapi.com, where { {TitleID}} is your game's specific Title ID.

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.