Local developing

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

I clone repo from github and install cert in dev folder and even then when I start squidex project I got error.

I use info from: https://docs.squidex.io/01-getting-started/contributing-and-developing/developing

Expected behavior

I expect it should be easy to run squidex locally.

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [x] Self hosted with other version
  • [ ] Cloud version

Version: last-github

Others:

{ "logLevel": "Error", "message": "An unexpected exception has occurred.", "app": { "name": "Squidex", "version": "1.0.0.0", "sessionId": "ea629e2b-efe2-465f-9836-76e9e7467f94" }, "web": { "requestId": "|17f5c918-4385c73f3ceca11d.", "requestPath": "/index.html", "requestMethod": "GET" }, "timestamp": "2020-09-21T07:37:20Z", "exception": { "type": "System.Net.Http.HttpRequestException", "message": "The SSL connection could not be established, see inner exception.", "stackTrace": " at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)\r\n at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task\u00601 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)\r\n at Squidex.Areas.Frontend.Middlewares.WebpackMiddleware.InvokeAsync(HttpContext context) in C:\\Users\\jiri\\repos\\squidex\\backend\\src\\Squidex\\Areas\\Frontend\\Middlewares\\WebpackMiddleware.cs:line 38\r\n at Squidex.Areas.Frontend.Middlewares.NotifoMiddleware.InvokeAsync(HttpContext context) in C:\\Users\\jiri\\repos\\squidex\\backend\\src\\Squidex\\Areas\\Frontend\\Middlewares\\NotifoMiddleware.cs:line 40\r\n at Squidex.Pipeline.Squid.SquidMiddleware.InvokeAsync(HttpContext context) in C:\\Users\\jiri\\repos\\squidex\\backend\\src\\Squidex\\Pipeline\\Squid\\SquidMiddleware.cs:line 94\r\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\n at Squidex.Web.Pipeline.LocalCacheMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\\Users\\jiri\\repos\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\LocalCacheMiddleware.cs:line 30\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.\u003C\u003Ec__DisplayClass5_1.\u003C\u003CUseMiddlewareInterface\u003Eb__1\u003Ed.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)\r\n at Squidex.Web.Pipeline.UsageMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\\Users\\jiri\\repos\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\UsageMiddleware.cs:line 46\r\n at Squidex.Web.Pipeline.UsageMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\\Users\\jiri\\repos\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\UsageMiddleware.cs:line 89\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.\u003C\u003Ec__DisplayClass5_1.\u003C\u003CUseMiddlewareInterface\u003Eb__1\u003Ed.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Squidex.Web.Pipeline.RequestLogPerformanceMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\\Users\\jiri\\repos\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\RequestLogPerformanceMiddleware.cs:line 40\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.\u003C\u003Ec__DisplayClass5_1.\u003C\u003CUseMiddlewareInterface\u003Eb__1\u003Ed.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Squidex.Web.Pipeline.RequestExceptionMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\\Users\\jiri\\repos\\squidex\\backend\\src\\Squidex.Web\\Pipeline\\RequestExceptionMiddleware.cs:line 49" } }

This is already fixed, but you have to install the certs in the dev folder.

I have install certs in dev folder. In my case issue was that I have occupied port 3000 so I make a change in webpack to bind a different port but what I do not know it is also hardcode port in backend (for local dev with webpack). If I change it it work. Maybe it will be better to provide port via confing / appssetings.json.