Closed nccdhelton closed 5 years ago
@nccdhelton Confirmed as a bug. I've seen this happen a couple of times. Will be addressed in the next release, if you need a workaround, you can remove = System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName()).FirstOrDefault( A => A.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).ToString();
from line 44 of Listener.cs. You'll then have to set ConnectAddress manually in the HTTP menu.
What exactly should I set the ConnectAddress variable to in Covenant/Covenant/Models/Listeners/Listener.cs? I tried the following (just commenting out that part and leaving the variable unset)...
public string ConnectAddress /**{ get; set; } System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName()).FirstOrDefault(
A => A.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).ToString()**/;
And now Covenant spits a ton of these invalid URI errors whenever I connect with Elite
fail: Microsoft.EntityFrameworkCore.Query[10100]
An exception occurred while iterating over the results of a query for context type 'Covenant.Models.CovenantContext'.
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at Covenant.Models.Listeners.HttpListener.set_Url(String value) in /Users/dhelton/github/Covenant/Covenant/Models/Listeners/HttpListener.cs:line 97
at lambda_method(Closure , MaterializationContext )
at Microsoft.EntityFrameworkCore.Query.EntityLoadInfo.Materialize()
at Microsoft.EntityFrameworkCore.Query.Internal.QueryBuffer.GetEntity(IKey key, EntityLoadInfo entityLoadInfo, Boolean queryStateManager, Boolean throwOnNullKey)
...........etc etc etc
I also tried setting it to a blank string ("") or the Covenant server's IP ("192.1.1.10" for example), and same result: tons of error messages at various points and I can't get into the HTTP
menu
@nccdhelton Remove just the part I mentioned and leave: public string ConnectAddress { get; set; }
This should now be fixed on the Covenant project.
OS: macOS 10.14.5 dotnet version: 2.2.301 (installed via Homebrew)
I'm running Covenant and Elite both locally using the macOS version of the .NET SDK.
When I connect to the Covenant server with Elite, I can go to the
Listener
menu, but when I typeHTTP
and hit Enter, I get this error message after a while in Elite, and am kicked back to theListener
menu:Over in the Covenant console, I get the following error message: