Why is my service-to-service comms failing?

[08:16:05 INF] Csharp Gateway is healthy!

Log

stdout

4100e3ca

[08:16:05 INF] Csharp Gateway is healthy!

Log

stdout

4100e3ca

[08:20:03 INF] Sending Ping to http://csharp-nexus.neurocache.koyeb/ping

Log

stdout

4100e3ca

[08:20:05 INF] Csharp Gateway is healthy!

Log

stdout

4100e3ca

fail: Microsoft.AspNetCore.Server.Kestrel[13]

Log

stdout

4100e3ca

Connection id "0HMV7O6S198CJ", Request id "0HMV7O6S198CJ:00000001": An unhandled exception was thrown by the application.

Log

stdout

4100e3ca

System.Net.Http.HttpRequestException: An error occurred while sending the request.

Log

stdout

4100e3ca

---> System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.

Log

stdout

4100e3ca

---> System.Net.Sockets.SocketException (104): Connection reset by peer

Log

stdout

4100e3ca

--- End of inner exception stack trace ---

Log

stdout

4100e3ca

at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)

Log

stdout

4100e3ca

at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)

Log

stdout

4100e3ca

at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)

Log

stdout

4100e3ca

at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)

Log

stdout

4100e3ca

--- End of inner exception stack trace ---

Log

stdout

4100e3ca

at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)

Log

stdout

4100e3ca

at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)

Log

stdout

4100e3ca

at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)

Log

stdout

4100e3ca

at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)

Log

stdout

4100e3ca

at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)

Log

stdout

4100e3ca

at Neurocache.Gateway.Controllers.Agent.AgentController.Ping() in /src/src/Controllers/Agent/AgentController.cs:line 30

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)`

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)

Log

stdout

4100e3ca

at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1 application)`

Log

stdout

4100e3ca

[08:20:35 INF] Csharp Gateway is healthy!

The answer was while my appname.servicename.koyeb format was right, what is needed in full is

http://appname.servicename.koyeb:port

Thank you for your suggestion @Tailwind_Mechanics, currently it is required to construct a URL from the protocol, private domain and port.

Please vote for the feedback I created for it to help us prioritize it: