question

Rohan Bijo avatar image
Rohan Bijo asked

UriFormatException: Invalid URI: The hostname could not be parsed.

Till today everything working fine. But suddenly this error came

UriFormatException: Invalid URI: The hostname could not be parsed.

Please tell how to solve it.

UriFormatException: Invalid URI: The hostname could not be parsed.
UnityEngineInternal.WebRequestUtils.MakeInitialUrl (System.String targetUrl, System.String localUrl) (at <e61918abe7eb4cca803071d15bb3e52b>:0)
UnityEngine.Networking.UnityWebRequest.set_url (System.String value) (at <e61918abe7eb4cca803071d15bb3e52b>:0)
UnityEngine.Networking.UnityWebRequest..ctor (System.String url) (at <e61918abe7eb4cca803071d15bb3e52b>:0)
PlayFab.Internal.PlayFabUnityHttp+<Post>d__12.MoveNext () (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:117)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <0ee480759f3d481d82ada245dc74f9fd>:0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayFab.Internal.PlayFabUnityHttp:MakeApiCall(Object) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:107)
PlayFab.Internal.PlayFabHttp:_MakeApiCall(String, String, PlayFabRequestCommon, AuthType, Action`1, Action`1, Object, Dictionary`2, Boolean, PlayFabAuthenticationContext, PlayFabApiSettings, IPlayFabInstanceApi) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs:228)
PlayFab.Internal.PlayFabHttp:MakeApiCall(String, PlayFabRequestCommon, AuthType, Action`1, Action`1, Object, Dictionary`2, PlayFabAuthenticationContext, PlayFabApiSettings, IPlayFabInstanceApi) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs:133)
PlayFab.PlayFabClientAPI:LoginWithAndroidDeviceID(LoginWithAndroidDeviceIDRequest, Action`1, Action`1, Object, Dictionary`2) (at Assets/PlayFabSDK/Client/PlayFabClientAPI.cs:1272)
GoldCoin:Login() (at Assets/AuthPlayfab/GoldCoin.cs:42)
GoldCoin:Start() (at Assets/AuthPlayfab/GoldCoin.cs:17)

This is the error i am getting.

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

·
Xiao Zha avatar image
Xiao Zha answered

Since everything was fine before, this might be a network or ISP issue. I'd suggest you change the network to see if it works. Besides, you can also use Postman to do a simple test and check what the result returns.

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.