Get error when Run Squidex Localy

I clone squidex from github and run everything without error until I go to the frontend page with the address https://localhost:3000. I don’t understand why it is calling backend with the same address https://localhost:3000



Error message in backend:


{
  "logLevel": "Error",
  "message": "Connection id \u00220HMIPS26TQB0A\u0022, Request id \u00220HMIPS26TQB0A:00000001\u0022: An unhandled exception was thrown by the application.",
  "eventId": {
    "id": 13,
    "name": "ApplicationError"
  },
  "connectionId": "0HMIPS26TQB0A",
  "traceIdentifier": "0HMIPS26TQB0A:00000001",
  "timestamp": "2022-06-29T15:03:43Z",
  "app": {
    "name": "Squidex",
    "version": "1.0.0.0",
    "sessionId": "5819c9e0-6dce-4a81-b909-b47bb32aea23"
  },
  "web": {
    "requestId": "00-e23c1b13cb6bd620ccfd837a1ee02e53-9c2c655913a36eeb-01",
    "requestPath": "/",
    "requestMethod": "GET"
  },
  "category": "Microsoft.AspNetCore.Server.Kestrel",
  "exception": {
    "type": "System.Net.Http.HttpRequestException",
    "message": "Failed to proxy the request to https://localhost:3000/, because the request to the proxy target failed. Check that the proxy target server is running and accepting requests to https://localhost:3000/.\n\nThe underlying exception message was \u0027The SSL connection could not be established, see inner exception.\u0027.Check the InnerException for more details.",
    "stackTrace": "   at Microsoft.AspNetCore.SpaServices.Extensions.Proxy.SpaProxy.PerformProxyRequest(HttpContext context, HttpClient httpClient, Task\u00601 baseUriTask, CancellationToken applicationStoppingToken, Boolean proxy404s)\r\n   at Microsoft.AspNetCore.Builder.SpaProxyingExtensions.\u003C\u003Ec__DisplayClass2_0.\u003C\u003CUseProxyToSpaDevelopmentServer\u003Eb__0\u003Ed.MoveNext()\r\n--- End of stack trace from previous location ---\r\n   at Squidex.Hosting.Web.HtmlTransformMiddleware.InvokeAsync(HttpContext context)\r\n   at Squidex.Web.Pipeline.SetupMiddleware.InvokeAsync(HttpContext context, IUserService userService) in X:\\learn\\AzureAd\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\SetupMiddleware.cs:line 41\r\n   at Squidex.Areas.Frontend.Middlewares.NotifoMiddleware.InvokeAsync(HttpContext context) in X:\\learn\\AzureAd\\squidex\\backend\\src\\Squidex\\Areas\\Frontend\\Middlewares\\NotifoMiddleware.cs:line 38\r\n   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\r\n   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\r\n   at NSwag.AspNetCore.Middlewares.OpenApiDocumentMiddleware.Invoke(HttpContext context)\r\n   at Squidex.Web.Pipeline.LocalCacheMiddleware.InvokeAsync(HttpContext context, ILocalCache localCache) in X:\\learn\\AzureAd\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\LocalCacheMiddleware.cs:line 26\r\n   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)\r\n   at Squidex.Web.Pipeline.RequestLogPerformanceMiddleware.InvokeAsync(HttpContext context, ISemanticLog log) in X:\\learn\\AzureAd\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\RequestLogPerformanceMiddleware.cs:line 36\r\n   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication\u00601 application)"
  }
}

{
  "logLevel": "Error",
  "message": "Connection id \u00220HMIPS26TQB0A\u0022, Request id \u00220HMIPS26TQB0A:00000001\u0022: An unhandled exception was thrown by the application.",
  "eventId": {
    "id": 13,
    "name": "ApplicationError"
  },
  "connectionId": "0HMIPS26TQB0A",
  "traceIdentifier": "0HMIPS26TQB0A:00000001",
  "timestamp": "2022-06-29T15:03:43Z",
  "app": {
    "name": "Squidex",
    "version": "1.0.0.0",
    "sessionId": "5819c9e0-6dce-4a81-b909-b47bb32aea23"
  },
  "web": {
    "requestId": "00-e23c1b13cb6bd620ccfd837a1ee02e53-9c2c655913a36eeb-01",
    "requestPath": "/",
    "requestMethod": "GET"
  },
  "category": "Microsoft.AspNetCore.Server.Kestrel",
  "exception": {
    "type": "System.Net.Http.HttpRequestException",
    "message": "Failed to proxy the request to https://localhost:3000/, because the request to the proxy target failed. Check that the proxy target server is running and accepting requests to https://localhost:3000/.\n\nThe underlying exception message was \u0027The SSL connection could not be established, see inner exception.\u0027.Check the InnerException for more details.",
    "stackTrace": "   at Microsoft.AspNetCore.SpaServices.Extensions.Proxy.SpaProxy.PerformProxyRequest(HttpContext context, HttpClient httpClient, Task\u00601 baseUriTask, CancellationToken applicationStoppingToken, Boolean proxy404s)\r\n   at Microsoft.AspNetCore.Builder.SpaProxyingExtensions.\u003C\u003Ec__DisplayClass2_0.\u003C\u003CUseProxyToSpaDevelopmentServer\u003Eb__0\u003Ed.MoveNext()\r\n--- End of stack trace from previous location ---\r\n   at Squidex.Hosting.Web.HtmlTransformMiddleware.InvokeAsync(HttpContext context)\r\n   at Squidex.Web.Pipeline.SetupMiddleware.InvokeAsync(HttpContext context, IUserService userService) in X:\\learn\\AzureAd\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\SetupMiddleware.cs:line 41\r\n   at Squidex.Areas.Frontend.Middlewares.NotifoMiddleware.InvokeAsync(HttpContext context) in X:\\learn\\AzureAd\\squidex\\backend\\src\\Squidex\\Areas\\Frontend\\Middlewares\\NotifoMiddleware.cs:line 38\r\n   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\r\n   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\r\n   at NSwag.AspNetCore.Middlewares.OpenApiDocumentMiddleware.Invoke(HttpContext context)\r\n   at Squidex.Web.Pipeline.LocalCacheMiddleware.InvokeAsync(HttpContext context, ILocalCache localCache) in X:\\learn\\AzureAd\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\LocalCacheMiddleware.cs:line 26\r\n   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)\r\n   at Squidex.Web.Pipeline.RequestLogPerformanceMiddleware.InvokeAsync(HttpContext context, ISemanticLog log) in X:\\learn\\AzureAd\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\RequestLogPerformanceMiddleware.cs:line 36\r\n   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication\u00601 application)"
  }
}

You should go to https://localhost:5001 as described here: https://docs.squidex.io/01-getting-started/contributing-and-developing/developing

@Sebastian
I get error when run ````dotnet run``` command:

{
  "logLevel": "Error",
  "message": "GatewayConnectionListener failed to start due to errors at stage 1999: System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions.\r\n   at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)\r\n   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)\r\n   at System.Net.Sockets.Socket.Bind(EndPoint localEP)\r\n   at Orleans.Networking.Shared.SocketConnectionListener.Bind() in /_/src/Orleans.Core/Networking/Shared/SocketConnectionListener.cs:line 63\r\n   at Orleans.Networking.Shared.SocketConnectionListenerFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken) in /_/src/Orleans.Core/Networking/Shared/SocketConnectionListenerFactory.cs:line 41\r\n   at Orleans.Runtime.Messaging.ConnectionListener.BindAsync(CancellationToken cancellationToken) in /_/src/Orleans.Runtime/Networking/ConnectionListener.cs:line 72\r\n   at Orleans.Runtime.Messaging.GatewayConnectionListener.OnRuntimeInitializeStart(CancellationToken cancellationToken) in /_/src/Orleans.Runtime/Networking/GatewayConnectionListener.cs:line 85\r\n   at Orleans.Runtime.SiloLifecycleSubject.MonitoredObserver.OnStart(CancellationToken ct) in /_/src/Orleans.Runtime/Lifecycle/SiloLifecycleSubject.cs:line 116",
  "eventId": {
    "id": 100450
  },
  "name": "GatewayConnectionListener",
  "stage": "1999",
  "timestamp": "2022-06-30T01:54:42Z",
  "app": {
    "name": "Squidex",
    "version": "1.0.0.0",
    "sessionId": "b02e396c-8650-49be-9ef1-4a5619a5927e"
  },

How can I fix it.

Solution: change Port of Orleans

1 Like