Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UriFormatException: Invalid URI: Invalid port specified. #35

Open
ChumbaWambalala opened this issue Oct 17, 2019 · 2 comments
Open

UriFormatException: Invalid URI: Invalid port specified. #35

ChumbaWambalala opened this issue Oct 17, 2019 · 2 comments

Comments

@ChumbaWambalala
Copy link

ChumbaWambalala commented Oct 17, 2019

Running the sample 2d platform scene gives this error.

UriFormatException: Invalid URI: Invalid port specified.
UnityEngineInternal.WebRequestUtils.MakeInitialUrl (System.String targetUrl, System.String localUrl) (at C:/buildslave/unity/build/Modules/UnityWebRequest/Public/WebRequestUtils.cs:548)
UnityEngine.Networking.UnityWebRequest.set_url (System.String value) (at C:/buildslave/unity/build/Modules/UnityWebRequest/Public/UnityWebRequest.bindings.cs:400)
UnityEngine.Networking.UnityWebRequest..ctor (System.String url, System.String method) (at C:/buildslave/unity/build/Modules/UnityWebRequest/Public/UnityWebRequest.bindings.cs:176)
HappyFunTimes.HFTSite+Informer+d__15.MoveNext () (at Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTSite.cs:90)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
HappyFunTimes.Informer:Inform(Boolean, MonoBehaviour, Byte[], String) (at Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTSite.cs:72)
HappyFunTimes.d__8:MoveNext() (at Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTSite.cs:241)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
HappyFunTimes.HFTSite:Init(Options) (at Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTSite.cs:175)
HappyFunTimes.HFTManager:StartServer() (at Assets/HappyFunTimes/HappyFunTimesCore/HFTManager.cs:272)
HappyFunTimes.HFTManager:Start(HFTRuntimeOptions, GameObject) (at Assets/HappyFunTimes/HappyFunTimesCore/HFTManager.cs:57)
HappyFunTimes.HFTConnectionManager:StartHappyFunTimes() (at Assets/HappyFunTimes/HappyFunTimesCore/HFTConnectionManager.cs:54)
HappyFunTimes.PlayerSpawner:StartHappyFunTimes() (at Assets/HappyFunTimes/HappyFunTimesCore/PlayerSpawner.cs:104)
HappyFunTimes.PlayerSpawner:Start() (at Assets/HappyFunTimes/HappyFunTimesCore/PlayerSpawner.cs:172)

https://imgs.info/i/k7tFw

@greggman
Copy link
Owner

@ChumbaWambalala
Copy link
Author

ChumbaWambalala commented Nov 2, 2019

Hi @greggman the issue with the URI was gone and its having this different issue.

SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

System.Net.Sockets.Socket.ReceiveFrom (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags, System.Net.EndPoint& remoteEP) (at <3845a180c26b4889bc2d47593a665814>:0)
System.Net.Sockets.Socket.ReceiveFrom (System.Byte[] buffer, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags, System.Net.EndPoint& remoteEP) (at <3845a180c26b4889bc2d47593a665814>:0)
System.Net.Sockets.UdpClient.Receive (System.Net.IPEndPoint& remoteEP) (at <3845a180c26b4889bc2d47593a665814>:0)
DNS.Client.RequestResolver.UdpRequestResolver.Request (DNS.Client.ClientRequest request) (at Assets/HappyFunTimes/HappyFunTimesCore/DNS/Client/RequestResolver/UdpRequestResolver.cs:28)
DNS.Client.ClientRequest.Resolve () (at Assets/HappyFunTimes/HappyFunTimesCore/DNS/Client/ClientRequest.cs:73)
DNS.Client.DnsClient.Resolve (DNS.Protocol.Domain domain, DNS.Protocol.RecordType type) (at Assets/HappyFunTimes/HappyFunTimesCore/DNS/Client/DnsClient.cs:83)
DNS.Client.DnsClient.Resolve (System.String domain, DNS.Protocol.RecordType type) (at Assets/HappyFunTimes/HappyFunTimesCore/DNS/Client/DnsClient.cs:72)
DNS.Client.DnsClient.Lookup (System.String domain, DNS.Protocol.RecordType type) (at Assets/HappyFunTimes/HappyFunTimesCore/DNS/Client/DnsClient.cs:42)
HappyFunTimes.HFTDnsUtils.GetIPAddresses (System.String domain, DNS.Protocol.RecordType type) (at Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTDnsUtils.cs:20)
HappyFunTimes.HFTSite.GetIPAddresses (DNS.Protocol.RecordType type) (at Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTSite.cs:155)
HappyFunTimes.HFTSite.Init (HappyFunTimes.HFTSite+Options options) (at Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTSite.cs:172)
HappyFunTimes.HFTManager.StartServer () (at Assets/HappyFunTimes/HappyFunTimesCore/HFTManager.cs:272)
HappyFunTimes.HFTManager.Start (HappyFunTimes.HFTRuntimeOptions options, UnityEngine.GameObject gameObject) (at Assets/HappyFunTimes/HappyFunTimesCore/HFTManager.cs:57)
HappyFunTimes.HFTConnectionManager.StartHappyFunTimes () (at Assets/HappyFunTimes/HappyFunTimesCore/HFTConnectionManager.cs:54)
HappyFunTimes.PlayerSpawner.StartHappyFunTimes () (at Assets/HappyFunTimes/HappyFunTimesCore/PlayerSpawner.cs:104)
HappyFunTimes.PlayerSpawner.Start () (at Assets/HappyFunTimes/HappyFunTimesCore/PlayerSpawner.cs:172)

EDIT: Problem will not happen when firewall is disable.
Thanks for the help :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants